1. A method comprising: a) monitoring, by a node of a packet switched core network, a traffic pattern relating to a terminal; and b) regulating states of the terminal according to the monitored traffic pattern, wherein the monitored traffic pattern comprises a keep alive message pattern relating to keep alive messages transmitted by the terminal; and further comprising, between monitoring and regulating, detecting a keep alive pattern and deriving from the detected keep alive pattern a keep-alive profile including information about at least two of a keep alive frequency, a keep alive direction, and keep alive L3/L4 characteristics regarding an internet protocol address/port number.