mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ole Laursen <olau@cs.aau.dk>
To: linux-kernel@vger.kernel.org
Cc: d507a@cs.aau.dk
Subject: Isolating two network processes on same machine
Date: 24 Nov 2004 16:10:12 +0100	[thread overview]
Message-ID: <tv8r7mj1dwr.fsf@homer.cs.aau.dk> (raw)

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/

             reply	other threads:[~2004-11-24 15:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-24 15:10 Ole Laursen [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tv8r7mj1dwr.fsf@homer.cs.aau.dk \
    --to=olau@cs.aau.dk \
    --cc=d507a@cs.aau.dk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®