Results 1 to 6 of 6
  1. #1
    uthpalaw is offline Member
    Join Date
    Mar 2010
    Posts
    68
    Rep Power
    0

    Default How to handle TCP retransmission

    Hi,

    I am developing a sms application using jsmpp api, once i crate a connection with the smsc my application is sending keep-alive messages every 30 seconds. During this process sometimes tcp retransmission is happening. So which means smsc getting two keep-alives before it sends back the ack for the first keep-alive which makes to throw negative response exception. Our smsc is not allowed for multiple connections.

    I monitor this scenario using wireshark with running ozeki sms gateway. At that time tcp retranmission also happened. But any way I think that ozeki have managed to control the retransmission without disconnecting the connection. But i don't have any idea how to handle this retransmission.

    Have someone experienced this kind of issue. Please help me to rectify this matter.


    Thanks in advanced,
    Uthpala

  2. #2
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default

    Isn't TCP retransmission supposed to be transparent to applications? In other words, shouldn't the receiving end silently ignore the duplicate messages at a level below smsc?

    Depending on the platform, you might be able to fiddle with the retransmission timeout on the sending side.
    Get in the habit of using standard Java naming conventions!

  3. #3
    uthpalaw is offline Member
    Join Date
    Mar 2010
    Posts
    68
    Rep Power
    0

    Default

    Hi .. Do you know a better method to listen to retransmissions. If so please be kind enough to share with me. Because in my app i don't have a method to listen to ack from smsc side. Still I couldn't find a way. Can we do this creating a socket connection ?

    Uthpala

  4. #4
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default

    As an application programmer, I've never had a reason to know or care what the TCP layer is doing. I only know it's supposed to be transparent. The fact that retransmission affects your apps in any way suggests there's a bug in your platform's TCP layer.
    Get in the habit of using standard Java naming conventions!

  5. #5
    uthpalaw is offline Member
    Join Date
    Mar 2010
    Posts
    68
    Rep Power
    0

    Default

    I also think this should be transparent, but when i used ozeki sms gateway to check the connectivity it works fine even though retransmission is happening. So in my opinion i think i have to handle this scenario from app side. But unfortunately i don't have any idea how to do this.

  6. #6
    Mrc0d3r's Avatar
    Mrc0d3r is offline Member
    Join Date
    Jun 2011
    Location
    TCP/IP Layer 3
    Posts
    7
    Rep Power
    0

Similar Threads

  1. Please help : handle database to jsp
    By kalyana in forum New To Java
    Replies: 4
    Last Post: 03-07-2011, 12:19 PM
  2. best way to handle db connection
    By uthpalaw in forum Advanced Java
    Replies: 11
    Last Post: 02-18-2011, 07:00 AM
  3. How to handle ArrayIndexOutOfBoundsException
    By 3xpr1ment in forum New To Java
    Replies: 6
    Last Post: 03-03-2010, 04:16 PM
  4. how to handle files?
    By sayan751 in forum Advanced Java
    Replies: 5
    Last Post: 06-10-2009, 09:39 PM
  5. handle FileNotFoundException
    By minifish in forum New To Java
    Replies: 13
    Last Post: 11-08-2008, 03:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •