a method for configuring internet protocol security protocol . the method includes configuring ipsec phase 1 security associations lifetimes and soft phase 2 sa lifetimes in a manner enabling efficient dead peer detection recovery of secure communication between client and server in the event of a communication disruption and thereby preventing undesirable sustained periods of non - communication between client and server .