1. A method of maintaining an Internet Protocol (IP) connection between a mobile terminal and a network node over a network, comprising: detecting a rate with which client-slide requests are made from the mobile terminal; dynamically adjusting time intervals between keep-alive messages sent from the network node to the mobile terminal based on the rate with which the client-side requests are made; sending, from the network node, keep-alive messages to the mobile terminal in an absence of network traffic through the IP connection between the mobile terminal and the network node; optimizing the time intervals between the keep-alive messages based on a cost to send the keep-alive messages in the network, wherein the cost includes a cost to re-establish the IP connection in the event of disconnection.