Re: Simulating a network on linux.

From: Ranjeet Shetye (ranjeet.shetye2@zultys.com)
Date: Fri Sep 19 2003 - 13:59:20 EST


On Fri, 2003-09-19 at 09:44, DavidHo@xxxxxxxxxxxxxx wrote:
> Hi,
>
> I am currently given the task to hook up a proprietory bus to the IP stack.
> What this amounts to is having to replace the hardware driver and the
> ethernet header to use our own hardware and our own (nmxbus) header to
> carry the IP/ARP payload. The next hurdle I'm running into is testing ARP
> with the new header. The first idea I have come up with is creating two
> nmxbus interfaces on the same machine that will simple read and write to
> memory to give a virtual connection between the two interfaces. The two
> interface will be given addresses in the same subnet to be able to exchange
> ARP messages. What I'm struggling with is whether there is a way I can
> force the packet to go out a specific interface to the other interface.
> The natural behaviour of the kernel is simply directing the packet to the
> loopback interface.
>
> Anyone has any insight on this?
>
> Regards,
>
> David Ho
> Nanometrics Inc.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html

Eight yrs back, when I was at USC's Information Sciences Institute
(www.isi.edu), a part of the work I did involved writing the RTP and
RTCP modules for a protocol testbed known as VINT (Virtual InterNetwork
Testbed @ http://www.isi.edu/nsnam/vint/).

Its a mixture of C++ and Tcl: C++ to model the network elements,
including protocols, and Tcl to control the simulations. If you are
looking at modelling/studying your proprietary bus and its behaviour,
VINT might be useful. For me, VINT was a good tool cos it let me focus
on the protocol behaviour rather than bit level device driver behaviour.

I am sure it has morphed into something more substantial since when I
last worked on it.

--

Ranjeet Shetye
Senior Software Engineer
Zultys Technologies
Ranjeet dot Shetye2 at Zultys dot com
http://www.zultys.com/

The views, opinions, and judgements expressed in this message are solely
those of the author. The message contents have not been reviewed or
approved by Zultys.


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html