Socket connection
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Muralidharan_Keeramangalam
Posted On:   Thursday, July 14, 2005 07:41 PM

How would you configure a socket for the best transfer speed?


Please use html tags to format code blocks.

Re: Socket connection

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, July 16, 2005 10:53 PM

Adjusting things like the packet size, retry rate and algorithm, etc.



I'm not sure how much adjustment you can do in Java; you might have to go to native C/C++ to make any real difference.


But it depends very much on what you are doing.



Are you doing a very interactive protocol? Then you want smaller packet size. Or are you sending huge files? then you want as big packets as possible, BUT ...



Are you going through routers? Then you have to worry about fragmentation so you need to keep packets under the limit before they get fragmented because that will add lots of overhead.


Are you going over 10 megabit? 100 megabit? or giga? for giga (1000 megabit) you probably want bigger packet sizes.


About | Sitemap | Contact