Re: New Address Family: Inter Process Networking (IPN)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Thursday, December 6, 2007 - 3:38 pm

On Thu, Dec 06, 2007 at 11:18:37PM +0100, Renzo Davoli wrote:

No ethernet headers on localhost. Just to give you a perspective:
IP+TCP headers are 50 bytes (with timestamps) and IP+UDP is 28 bytes.
On the other hand the sk_buff+skb_shared_info header which are used for 
all socket communication in Linux and have to be mostly set up always
are 192+312bytes on 64bit [parts of the 312 bytes is an array that is 
typically only partly used] or 156+236 bytes on 32bit. So the network
headers dwarf the internal data structures.

There might be other reasons why TCP/IP is slower, but arguing 
with the size of the headers is just bogus.

My personal feeling would be that if TCP/IP is too slow for something
it is better to just improve the stack than to add a completely
new socket family. That will benefit much more applications without
requiring to change them.

About the only good reason to use UNIX sockets is when you need to use
file system permissions. 


IP Multicast when properly set up also doesn't need root.

Broadcast is kind of obsolete anyways.


They could easily just tunnel over a local multicast group for example.

-Andi

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
New Address Family: Inter Process Networking (IPN), Renzo Davoli, (Wed Dec 5, 9:40 am)
Re: New Address Family: Inter Process Networking (IPN), Stephen Hemminger, (Wed Dec 5, 2:55 pm)
Re: New Address Family: Inter Process Networking (IPN), Renzo Davoli, (Wed Dec 5, 10:30 pm)
Re: New Address Family: Inter Process Networking (IPN), Renzo Davoli, (Wed Dec 5, 10:38 pm)
Re: New Address Family: Inter Process Networking (IPN), Stephen Hemminger, (Wed Dec 5, 11:04 pm)
Re: New Address Family: Inter Process Networking (IPN), Kyle Moffett, (Wed Dec 5, 11:19 pm)
Re: New Address Family: Inter Process Networking (IPN), David Newall, (Wed Dec 5, 11:59 pm)
Re: New Address Family: Inter Process Networking (IPN), Chris Friesen, (Thu Dec 6, 1:36 pm)
Re: New Address Family: Inter Process Networking (IPN), Renzo Davoli, (Thu Dec 6, 3:18 pm)
Re: New Address Family: Inter Process Networking (IPN), David Newall, (Thu Dec 6, 3:21 pm)
Re: New Address Family: Inter Process Networking (IPN), Andi Kleen, (Thu Dec 6, 3:38 pm)
Re: New Address Family: Inter Process Networking (IPN), Chris Friesen, (Thu Dec 6, 4:02 pm)
Re: New Address Family: Inter Process Networking (IPN), Chris Friesen, (Thu Dec 6, 4:42 pm)
Re: New Address Family: Inter Process Networking (IPN), Renzo Davoli, (Thu Dec 6, 5:18 pm)
Re: New Address Family: Inter Process Networking (IPN), David Miller, (Thu Dec 6, 8:41 pm)
Re: New Address Family: Inter Process Networking (IPN), Chris Friesen, (Thu Dec 6, 9:21 pm)
Re: New Address Family: Inter Process Networking (IPN), David Miller, (Thu Dec 6, 11:40 pm)
AF_IPN: Inter Process Networking, try these..., Renzo Davoli, (Fri Dec 7, 2:18 pm)
Re: AF_IPN: Inter Process Networking, try these..., David Miller, (Fri Dec 7, 7:07 pm)
Re: New Address Family: Inter Process Networking (IPN), Chris Friesen, (Mon Dec 10, 9:05 am)