A method for enhancement of throughput and lifetime of a wireless distributed communication network characterized by self-optimizing said network, the method comprising processor implemented steps of: a) sensing different parameters of at least one neighboring machine by at least one individual machine in the communication network; b) updating at least one parameter of said individual machine based on said sensed parameters of said neighboring machine, wherein the at least one parameter, comprises at least one of an instantaneous power, a modulation index, rate change, congestion window, a routing table or a combination thereof, wherein the routing table stores routing information associated with the individual machine and the neighboring machine, and wherein the routing table is computed based on a cost of a link between the individual machine and the neighboring machine, and wherein the cost is a function of battery power available with the individual machine, wherein the routing table is updated only when a new cost of the link is less than an existing cost of the link, and wherein the individual machine is configured to transmit packets to the neighboring machine only when the routing table is updated; c) generating a signed-graph on the basis of the updated parameter of the individual machine, wherein said generated graph comprises at least two nodes representing said updated parameter and at least one edge interconnecting said two nodes, wherein said at least one edge in the graph is assigned a signed weight component, on the basis of increasing or decreasing value of the parameter, being updated, from the previous value; d) optimizing the network parameters by iteratively updating the parameters of the individual machine at different time-scales (T1, T2 and T3) until the convergence is achieved, wherein the convergence is achieved by updating, at each of the time scales, at least one of parameters in order to optimize a rate of transmission corresponding to a physical layer, a transmission rate corresponding to a transport layer, a lifetime and a throughput, wherein, at the end of a first time scale, the instantaneous power and the modulation index are updated until the rate of transmission and the throughput are maximized, and wherein, after completing a second time scale, the instantaneous power, the modulation index and the congestion window are updated until the rate of transmission and the throughput are maximized, and wherein, at the completion of a third time scale, the routing table is updated, based on the battery available, until the throughput is maximized; and e) communicating inter-layer updates in the individual layers of the transmission protocol stack of the individual machine due to said update of at least one parameter. a) sensing different parameters of at least one neighboring machine by at least one individual machine in the communication network; b) updating at least one parameter of said individual machine based on said sensed parameters of said neighboring machine, wherein the at least one parameter, comprises at least one of an instantaneous power, a modulation index, rate change, congestion window, a routing table or a combination thereof, wherein the routing table stores routing information associated with the individual machine and the neighboring machine, and wherein the routing table is computed based on a cost of a link between the individual machine and the neighboring machine, and wherein the cost is a function of battery power available with the individual machine, wherein the routing table is updated only when a new cost of the link is less than an existing cost of the link, and wherein the individual machine is configured to transmit packets to the neighboring machine only when the routing table is updated; c) generating a signed-graph on the basis of the updated parameter of the individual machine, wherein said generated graph comprises at least two nodes representing said updated parameter and at least one edge interconnecting said two nodes, wherein said at least one edge in the graph is assigned a signed weight component, on the basis of increasing or decreasing value of the parameter, being updated, from the previous value; d) optimizing the network parameters by iteratively updating the parameters of the individual machine at different time-scales (T1, T2 and T3) until the convergence is achieved, wherein the convergence is achieved by updating, at each of the time scales, at least one of parameters in order to optimize a rate of transmission corresponding to a physical layer, a transmission rate corresponding to a transport layer, a lifetime and a throughput, wherein, at the end of a first time scale, the instantaneous power and the modulation index are updated until the rate of transmission and the throughput are maximized, and wherein, after completing a second time scale, the instantaneous power, the modulation index and the congestion window are updated until the rate of transmission and the throughput are maximized, and wherein, at the completion of a third time scale, the routing table is updated, based on the battery available, until the throughput is maximized; and e) communicating inter-layer updates in the individual layers of the transmission protocol stack of the individual machine due to said update of at least one parameter.