[p2p-hackers] simulator for p2p
Eric M. Hopper
hopper at omnifarious.org
Wed Feb 2 03:17:28 UTC 2005
On Tue, 2005-02-01 at 18:22 +0100, Davide Carboni wrote:
> Hi,
> is there any way to simulate a p2p network using a single PC? I know
> ns2 but it seems very "low-level" simulation. I'd like something to
> simulate a network of peers abstracting from the serialization of
> messages. For instance, I'd like to model peers like objects in memory
> which exchange messages invoking methods each other but taking into
> account variables like the bandwidth, the latency and so forth.
You could probably write a replacement for SocketModule in my
StreamModule framework (http://www.omnifarious.org/StrMod/) that could
simulate some of the latency characteristics of a network connection.
If you wrote the code to use StreamModule, you could then put in real
SocketModules instead and it would work over a real network with no
other changes.
Have fun (if at all possible),
--
Eric Hopper (hopper at omnifarious.org http://www.omnifarious.org/~hopper)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: This is a digitally signed message part
Url : http://zgp.org/pipermail/p2p-hackers/attachments/20050201/aa1d07bf/attachment.pgp
More information about the P2p-hackers
mailing list