<div dir="ltr">Hi,<div><br></div><div>I am using Libreswan IPSec VPN in transport mode. (L2tpv3 over IPSec). We see a lag in one of our applications running between sites. Normally, it is 16 to 20 ms. however, <b>every 7:45</b> it shows some lag / delay in application upto 400ms.</div><div><br></div><div><p class="MsoNormal">We tested the performance of this connection. The communication delay (from end device to end device). During these tests we recognized a significant delay about every 7h 45min of 190 ms to 700 ms . After checking router config and logs <b>we assumed the SA key exchange is responsible for the delay. </b>The SA lifetime was configured to 8h. After changing the lifetime to 1h the delay occurred about every 45 min.</p><p class="MsoNormal"><br></p><p class="MsoNormal">This could be the CPU or Libreswan could be optimized to avoid this issue ? </p><p class="MsoNormal"><br></p><p class="MsoNormal">Any help would highly be appreciated.</p><p class="MsoNormal"><br></p><p class="MsoNormal">Thanks.</p><p class="MsoNormal"><br></p></div></div>