• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    how many bandwidth saved for use Modbuse IP TCP keep alive?

    Mango Automation general Discussion
    2
    4
    1.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      timkk880
      last edited by

      Compare with Modbuse IP Transport type TCP, how many bandwidth saved if use Transport type TCP, keep alive?

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by

        Hi timkk880,

        Not really a Mango question, and offhand I wouldn't expect it to have an easy answer other than 'a little'. I would imagine it to depend upon the size and frequency of the requests. I would encourage you to test! I would expect more savings as the polls got faster and to some extent larger, and expect it to consume more bandwidth if the polls were very infrequent (looks like > 2 hours by default) and TCP keep alive traffic composes most of the bandwidth usage.

        • This stack overflow thread is relevant: https://stackoverflow.com/questions/1480236/does-a-tcp-socket-connection-have-a-keep-alive
        • The use of keepAlive as a setting is in the TcpMaster: https://github.com/infiniteautomation/modbus4j/blob/master/Modbus4J/src/com/serotonin/modbus4j/ip/tcp/TcpMaster.java
        1 Reply Last reply Reply Quote 0
        • T
          timkk880
          last edited by timkk880

          Thank you for so detail answer, phildunlap. As for polls every second, is that mean TCP keep alive will consume less bandwidth than TCP? Any figure about that? Estimated need more bandwidth of 5% or 20% like that?

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            That will again depend on the size of the request.

            Blindly trusting the numbers from this stack overflow thread (as I'm not that deep in the TCP protocol typically): https://stackoverflow.com/questions/31378403/how-much-data-it-cost-to-set-up-a-tcp-connection

            Without keep alive it would be opened and closed each poll, so 296bytes / poll. 24 * 3600 * 296 = 25574400 so maybe 25.5MB / day

            But I would still encourage you to meter it if that overhead is important.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post