I have a question is this Average transfer rate Out: 94.35 KB/s In: 400 Bytes/s
Too much consider a media of 100 to 300 users in 2.5 days? (which leads to 20 GB output total)
We have room chats, global chats, and lot of stuff.
And if it is too much how can i know the main problem (any tool to just turn on and get which endpoint is getting too much data?)
Average transfer rate
Re: Average transfer rate
Hi,
the traffic seems reasonable for 100-300 CCU. Additionally the avg transfer rate will change significantly between high traffick hours and low traffic ones. That average is calculated on a small time window (1h if I recall correctly)
If you want to check the daily consumption of bandwidth you'd better get the data from your hosting provider.
94KBs / 100 users -> 0.94KB per user... I dont' see how this could be too much
Cheers
the traffic seems reasonable for 100-300 CCU. Additionally the avg transfer rate will change significantly between high traffick hours and low traffic ones. That average is calculated on a small time window (1h if I recall correctly)
If you want to check the daily consumption of bandwidth you'd better get the data from your hosting provider.
And if it is too much how can i know the main problem (any tool to just turn on and get which endpoint is getting too much data?)
94KBs / 100 users -> 0.94KB per user... I dont' see how this could be too much
Cheers
Re: Average transfer rate
Gracias y otra consulta para quedarme tranquilo al respecto.
Que tanto pesa para una transmision enviar y recibir un entero por ejemplo? cual es el overhead? (ya que asumo que se envian bastante mas datos) no me interesa cuales solo quiero mas o menos saber cuantos, 16 bytes? 512? 1k? 16k?
Digo porque si la minima fuesen 8k (por ejemplo) seria logico no enviar muchos endpoints sino enviar uno con todo. Se entiende la pregunta?
Que tanto pesa para una transmision enviar y recibir un entero por ejemplo? cual es el overhead? (ya que asumo que se envian bastante mas datos) no me interesa cuales solo quiero mas o menos saber cuantos, 16 bytes? 512? 1k? 16k?
Digo porque si la minima fuesen 8k (por ejemplo) seria logico no enviar muchos endpoints sino enviar uno con todo. Se entiende la pregunta?
Re: Average transfer rate
It would be best if we could keep this in English, so everyone understands, us included 
You're asking the overhead for an integer?
It depends. There are different types of integer: byte (8 bit), short (16 bit), int (32 bit) and long (64 bit)
To encode one of these the protocol uses 1 byte + length of the integer itself. So if it's a 32-bit int it will be 1+4 bytes = 5
Keep in mind that SmartFoxServer also uses zlib compression if a packet is larger than a specific threshold (default is 1024 bytes) to reduce the bandwidth usage.
Cheers
You're asking the overhead for an integer?
It depends. There are different types of integer: byte (8 bit), short (16 bit), int (32 bit) and long (64 bit)
To encode one of these the protocol uses 1 byte + length of the integer itself. So if it's a 32-bit int it will be 1+4 bytes = 5
Keep in mind that SmartFoxServer also uses zlib compression if a packet is larger than a specific threshold (default is 1024 bytes) to reduce the bandwidth usage.
Cheers
Re: Average transfer rate
Sorry so much, I totally confused and switched to spanish.
but clearly that was not what I asked.
My question is if the transfer rate measured is the real data or the data including everything required such as format.
for example when we send one ISFSObject that has 1 int and utfString
for example:
{
"adminName":"SomeName",
"aminLevel":2
}
(lets imagine and sfsobject like that)
how much the total transfer is, does the TCP counts? does this some extra required header that will always be there and also be counted?
Just trying to understand because the front end people may want me to give them 20 small endpoints that instead can be done by one with a variable array of 20 and then if this has a header, will be to send more data.
Just trying to understand that. thank for your answers.
but clearly that was not what I asked.
My question is if the transfer rate measured is the real data or the data including everything required such as format.
for example when we send one ISFSObject that has 1 int and utfString
for example:
{
"adminName":"SomeName",
"aminLevel":2
}
(lets imagine and sfsobject like that)
how much the total transfer is, does the TCP counts? does this some extra required header that will always be there and also be counted?
Just trying to understand because the front end people may want me to give them 20 small endpoints that instead can be done by one with a variable array of 20 and then if this has a header, will be to send more data.
Just trying to understand that. thank for your answers.
Re: Average transfer rate
Our AdminTool measures the actual packets being transmitted and received but it doesn't account for the whole network stack. Every TCP or UDP packet has a layer 4 header (transport), then a layer 3 layer (IP) etc...
If you need the precise transfer rate up to the last byte you should monitor the traffic with a dedicated tool. If you're on linux there's plenty of choices. Other OS should have network monitors as well.
Sending 20 small packets vs 1 with all data will always generate a bit extra traffic. But some use cases may require to send the small packets anyways. It depends on what you need to do.
Cheers
If you need the precise transfer rate up to the last byte you should monitor the traffic with a dedicated tool. If you're on linux there's plenty of choices. Other OS should have network monitors as well.
Just trying to understand because the front end people may want me to give them 20 small endpoints that instead can be done by one with a variable array of 20 and then if this has a header, will be to send more data
Sending 20 small packets vs 1 with all data will always generate a bit extra traffic. But some use cases may require to send the small packets anyways. It depends on what you need to do.
Cheers