Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: a network simulator in perl

by rpc (Monk)
on Mar 01, 2001 at 23:12 UTC ( #61624=note: print w/replies, xml ) Need Help??

in reply to a network simulator in perl

I think this would be pretty easy to do with Linux's tuntap device: a userland interface to ethernet interfaces.
This allows you to use a filehandle (/dev/tunX) to write raw packets to the wire.
You could have a Perl daemon that creates/maintains several nodes on your network, each listening on a separate IP..or something :)

Relevant dox can be found in /usr/src/linux/Documentation/network/tuntap.txt

Replies are listed 'Best First'.
Re: Re: a network simulator in perl
by howard40 (Beadle) on Mar 02, 2001 at 00:03 UTC
    oh no no :)

    i was talking about a network simulator purely for fun, not utilizing any networking hardware or making any actual connections over any real networks... kind of like the galaxy game, only stripped down... the planets are nodes, and wires can be strung between the planets, carrying cargo (bits), and you can play with the system, to see how it reacts to new nodes, new connections, or knocking out connections in certain places ...

    i love simulators... like simcity... :)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://61624]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2023-01-30 11:55 GMT
Find Nodes?
    Voting Booth?

    No recent polls found