Jump to content
  • Advertisement
Sign in to follow this  
Catafriggm

Throughput Question

This topic is 4847 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Suppose I have a UDP "connection" (that is, I am communicating with another peer via UDP) with 512 byte packets (hypothetical number), and my upload bandwidth is considerably higher than the receiver's download bandwidth (let's say 25 KBps and 5 KBps, for example). If I can determine that the throughput limit is 5 KBps, how should I go about limiting the amount of data I send (as obviously I don't want to flood the receiver, while maximizing throughput)? Is it okay to send 10 packets in the first 1/5 of a second (as fast as I could upload) to the receiver and then send nothing the other 4/5 of the second, or would it be necessary to send 1 packet every 100 ms? [Edited by - Catafriggm on August 10, 2005 2:32:52 PM]

Share this post


Link to post
Share on other sites
Advertisement
If you send more data than the pipe can handle all that will happen is the
data will be buffered. Really if you want to get the maximum bandwidth you want
to 'fill' the pipe...ie the delay bandwidth product. Not a trivial task to program
yourself...but if you are trying to do this then try to even out the data flow. Sending all the packets at once could keep the pipe filled, but at the expense of the delay in the buffering....and delay and jitter in networking can be just as bad as low bandwidth.

Share this post


Link to post
Share on other sites
Quote:
Original post by stake
If you send more data than the pipe can handle all that will happen is the
data will be buffered.


I'm pretty sure that this is not always necessarily true with UDP. The packets can drop with no error.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!