There is no such thing as a 'necessary' war, at least on an international scale anyway. Wars are a product of both offence and defence but (somewhat obviously) are always started by the aggressor. However, you refer to the necessity of war from a defensive, or even preemptive, point of view i.e...