Archived

This forum has been archived. Please start a new discussion on GitHub.

about the set network bandwidth

The network bandwith was used nearly 100% When big data were

transmiteted.few data requested the server that needed wait for a

long .How to let the server control the use of network bandwidth from

client request.
For example:
Every client was set 10% bandwidth even if no one request.

Comments

  • Ice will send the data as quickly as it can. So, if you have an otherwise idle network, Ice will most likely saturate the network to the limit of the bandwidth that network can carry.

    If you have two clients doing this at the same time, each will get 50% (more or less) of the available bandwidth, and so on.

    If you are worried that a server doesn't do anything for a second client while it is receiving data from a first client, the reason is most likely that you have only one thread in the server's thread pool. See the server-side thread pool FAQs for more details here and here.

    Ice has no built-in mechanism to rate-limit clients or servers, so you cannot say "don't send more then 10kB per second" or some such.

    Cheers,

    Michi.
  • michi wrote: »
    Ice will send the data as quickly as it can. So, if you have an otherwise idle network, Ice will most likely saturate the network to the limit of the bandwidth that network can carry.

    If you have two clients doing this at the same time, each will get 50% (more or less) of the available bandwidth, and so on.

    If you are worried that a server doesn't do anything for a second client while it is receiving data from a first client, the reason is most likely that you have only one thread in the server's thread pool. See the server-side thread pool FAQs for more details here and here.

    Ice has no built-in mechanism to rate-limit clients or servers, so you cannot say "don't send more then 10kB per second" or some such.

    Cheers,

    Michi.

    Thank you for your help!
    If there are two clients doing this at the same time, each will get 50% (more or less) of the available bandwidth with two 200M data, it is not problem.But if the one data is 200M,others 200k.200k data resquest server while 200M data was sending .
    Sum: 200M data will be transmitted more 10M/s ,200k data will be transmitted less 10k/s.