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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Renzo Davoli
Date: Thursday, December 6, 2007 - 5:18 pm

I have done some raw tests.
(you can read the code here: http://www.cs.unibo.it/~renzo/rawperftest/)

The programs are quite simple. The sender sends "Hello World" as fast as it
can, while the receiver prints time() for each 1 million message
received.

On my laptop, tests on 20000000 "Hello World" packets, 

One receiver:
multicast	244,000 msg/sec
IPN             333,000 msg/sec  (36% faster)

Two receivers:
multicast       174,000 msg/sec
IPN             250,000 msg/sec  (43% faster)

Apart from this, how could I implement policies over a multicast socket,
e.g. how does a Kernel VDE_switch work on multicast sockets?

If I send an ethernet packet over a multicast socket it can emulate just a
hub (Although it seems to me quite innatural to have to have TCP-UDP 
over IP over Ethernet over UDP over IP - okay we can skip the Ethernet 
on localhost, long ethernet frames get fragmentated but... details).

On multicast socket you cannot use policies, I mean a IPN network (or
bus or group) can have a policy reading some info on the packet to
decide the set of receipients.
For a vde_switch it is the destination mac address when found in the
MAC hash table to select the receipient port. For midi communication it 
could be the channel number....

Moving the switching fabric to the userland the performance figures are
quite different.

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)