Networking Forums

Networking Forums > Computer Networking > Linux Networking > why the ip packet size is too small

Reply
Thread Tools Display Modes

why the ip packet size is too small

 
 
Jorgen Grahn
Guest
Posts: n/a

 
      03-05-2011, 12:09 AM
On Fri, 2011-03-04, Rick Jones wrote:
> Bob Hauck <(E-Mail Removed)> wrote:
>> On Thu, 3 Mar 2011 23:22:42 +0000 (UTC), Rick Jones <(E-Mail Removed)>
>> wrote:

>
>> > For "small" packets, the CPU cost is about the same regardless of
>> > data or ACK. This means that the application which is making the
>> > propper gathering send call will spend far fewer CPU cycles in the
>> > networking stack.

>
>> When you say "gathering send", do you mean it would be sufficient
>> (on Linux with a recent libc) to use writev(), or do you actually
>> need to put everything in one buffer and call write()?

>
> When I wrote that I was much more Unix aligned, where one could use
> writev() to do that (or sendmsg(), IIRC). I would have ass-u-me-d the
> same for writev() on Linux.


writev() must do The Right Thing for UDP sockets (i.e. send one big
datagram) so at least the C library cannot mindlessly translate it
into a series of write(2) calls.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the best VPN router for small size company?" Trianero Network Routers 1 01-13-2008 12:48 AM
set maximum ip-packet-size ? peter pilsl Linux Networking 1 06-01-2004 11:48 PM
Wtd: Small Hub os switch (Physical size!) gavin@mindless.com Home Networking 11 01-13-2004 04:31 PM
How to force UDP packet size? Nicola Gatti Linux Networking 5 01-07-2004 12:02 PM
Small Size AP? Wireless Internet 3 08-19-2003 03:00 AM



1 2 3 4 5 6 7 8 9 10 11