1
votes

I send data to my server from my TCP socket every 5 seconds. How much data would be consumed in an hour at this rate of sending messages.

Every time, a socket is opened and data is pumped out of it from the client to the sever. I am using a 3G GSM modem on my client side.

my message is, ID1$Socket$Open$timestamp. All are strings

1
Impossible to answer until you tell us how much data you send every 5 seconds. - nos
@nos my message is, ID1$Socket$Open$timestamp. All are strings - bhuvan

1 Answers

0
votes

ID1$Socket$Open$timestamp is 25 bytes, assuming an 8-bit string, and assuming you are not sending any other data (headers/delimiters, etc) in between your messages.

So, 1 message sent every 5 seconds is 60 / 5 = 12 messages per minute, which is 12 * 60 = 720 messages per hour. At 25 bytes per message, that is 720 * 25 = 18000 bytes per hour (plus overhead for TCP/IP headers and framing per message, and ACKs per TCP frame).