TCP socket data consumption -


i send data server tcp socket every 5 seconds. how data consumed in hour @ rate of sending messages.

every time, socket opened , data pumped out of client sever. using 3g gsm modem on client side.

my message is, id1$socket$open$timestamp. strings

id1$socket$open$timestamp 25 bytes, assuming 8-bit string, , assuming not sending other data (headers/delimiters, etc) in between messages.

so, 1 message sent every 5 seconds 60 / 5 = 12 messages per minute, 12 * 60 = 720 messages per hour. @ 25 bytes per message, 720 * 25 = 18000 bytes per hour (plus overhead tcp/ip headers , framing per message, , acks per tcp frame).


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -