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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Renzo Davoli
Date: Wednesday, December 5, 2007 - 10:30 pm

On Thu, Dec 06, 2007 at 12:39:22AM +0100, Andi Kleen wrote:

RFC 3549 says:
"This document describes Linux Netlink, which is used in Linux both as
   an intra-kernel messaging system as well as between kernel and user
   space."

We know AF_NETLINK, our user-space stack lwipv6 supports it.

AF_IPN is different. 
AF_IPN is the broadcast and peer-to-peer extension of AF_UNIX.
It supports communication among *user* processes. 

Example:

Qemu, User-Mode Linux, Kvm, our umview machines can use IPN as an
Ethernet Hub and communicate among themselves with the hosting computer 
and the world by a tap like interface.

You can also grab an interface (say eth1) and use eth0 for your hosting
computer and eth1 for the IPN network of virtual machines.

If you load the kvde_switch submodule IPN can be a virtual Ethernet switch.

This example is already working using the svn versions of ipn and
vdeplug.

Another Example:

You have a continuous stream of data packets generated by a process,
and you want to send this data to many processes.
Maybe the set of processes is not known in advance, you want to send the
data to any interested process. Some kind of publish&subscribe
communication service (among unix processes not on TCP-IP).
Without IPN you need a server. With IPN the sender creates the socket
connects to it and feed it with data packets. All the interested 
receivers connects to it and start reading. That's all.

I hope that this message can give a better undertanding of what IPN is.

	renzo
--
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)