7 Replies Latest reply: Jun 30, 2010 5:00 PM by Rob Buehler RSS

Maintaining sessions


If I have my device set up to send in updates every 30 minutes, should I just keep my sessions alive or does it make more sense to tear it down and re-establish each time?


  • Re: Maintaining sessions

    Hi Ashley,


    It is important to strike a balance between many short sessions and excessively long sessions with long periods between data transfers. There is no single optimum session duration without transfer, because the right choice also depends on the amount of data in each transfer. The following general guidelines should be observed:

    If data is to be passed more frequently than once every hour, maintain a single PDP Context session rather than a separate context for each burst of data.


    If data is to be passed less frequently than once every eight hours, use a new PDP Context for each transmission.


    Thanks, Rob

  • Re: Maintaining sessions

    I can think of one reason not to maintain the connection.  You may have multiple GSM devices that want to connect to one TCP server on the internet.  There is a practical limit of how many can do this simultaneously.  A customer was asking about using our little GSM enabled embedded controller, http://www.icpdas-usa.com/products.php?PID=3595 , for posting data once per hour, but there would be many of them. So, the solution I suggested was to have them wait for an SMS requesting the data, or connecting on a well defined schedule so that many were not trying simultaneously.