public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Isolating two network processes on same machine
@ 2004-11-24 15:10 Ole Laursen
  2004-11-24 16:23 ` linux-os
  2004-11-24 20:39 ` Ross Biro
  0 siblings, 2 replies; 8+ messages in thread
From: Ole Laursen @ 2004-11-24 15:10 UTC (permalink / raw)
  To: linux-kernel; +Cc: d507a

Hi,

We need to test a peer-to-peer network application that is supposed to
be scalable. To that end, we have a FreeBSD box with dummynet and a
small cluster of Linux test machines. The box act as the gateway for
the test machines and delay incoming packets for a while before
throwing them back to the cluster to simulate latency on the Internet.

By letting the test machines think they run on separate subnets, we
have been able to fool them into forwarding their packets to the
FreeBSD gateway even though everyone is connected to the same switch.
This is working fine.

The problem is that we need to run several instances of our network
application on the same test machine since we have too few machines.
But when we create two IP addresses on the same machine with

  ifconfig eth0:0 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255
  ifconfig eth0:1 10.0.1.2 netmask 255.255.255.0 broadcast 10.0.1.255

and start two instances on the same machine with the two IP addresses,
then they communicate directly with each other instead of going
through the FreeBSD gateway. Can anyone see a way to solve this
problem?


(I've CC'ed the other guys in my group.)

-- 
Ole Laursen
http://www.cs.aau.dk/~olau/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-11-27  0:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-24 15:10 Isolating two network processes on same machine Ole Laursen
2004-11-24 16:23 ` linux-os
2004-11-24 16:38   ` Lee Revell
2004-11-24 17:06     ` linux-os
2004-11-24 17:12       ` linux-os
2004-11-25 10:44   ` Ole Laursen
2004-11-24 20:39 ` Ross Biro
2004-11-25 11:48   ` Ole Laursen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox