AF_IPN: Inter Process Networking, try these...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Renzo Davoli
Date: Friday, December 7, 2007 - 2:18 pm

Andi, David,

I disagree. If you suspect we would be better using IP multicast, I think
your suspects are not supported.
Try the following exercises, please.... Can you provide better solutions
without IPN?

	renzo

Exercise #1.
I am a user (NOT ROOT), I like kvm, qemu etc. I want an efficient network
between my VM.

My solution:
I Create a IPN socket, with protocol IPN_VDESWITCH and all the VM can
communicate.

Your solution:
- I am condamned by two kernel developers to run the switch in the userland 
- I beg the sysadm to give me some pre-allocated taps connected together
by a kernel bridge.
- I create a multicast socket limited to this host (TTL=0) and I use it
like a hub. It cannot switch the packets.                               

Exercise #2.
I am a sysadm (maybe a lab administrator). I want my users (not root)
of the group "vmenabled" to run their VM connected to a network. 
I have hundreds of users in vmenabled(say students).

My Solution:
I create a IPN socket, with protocol IPN_VDESWITCH, connected to a virtual
interface say ipn0. I give to the socket permission 760 owner
root:vmenabled.

Your solution:
- I am condamned by two kernel developers to run the switch in the userland
- I create a multicast socket connected to a tap and then I define iptables
filters to avoid unauthorized users to join the net.
- I create hundreds of preallocated tap interfaces, at least one per user.

Exercise #3.
I am a user (NOT ROOT) and I have a heavy stream of *very private data* 
generated by some processes that must be received by several processes.
I am looking for an efficient solution.
Data can be ASCII strings, or a binary stream.
It is not a "networking" issue, it is just IPC.

My solution.
I Create a IPN socket with permission 700, IPN_BROADCAST protocol. All 
the processes connect to the socket either for writing or for reading (or both).

Your solution:
- I am condamned by two kernel developers to use userland inefficient
solutions like named pipes, tee, or a user daemon among AF_UNIX sockets.
- If I use multicast, others can read the stream.
(security by obscurity? the attacker do not know the address?)
- I use a multicast socket with SSL (it sounds funny to use encryption
  to talk with myself, exposing the stream to crypto attack).
--
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), 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)