Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LAN simulation using Java?

I have to create a Java program that simulates around 50-100 nodes. I want to test a few routing algorithms and analyse network performance. I tried simulating nodes with threads, but my CPU utilization goes up like anything when I use more threads. Is there a method to simulate a network in Java. If so what way?

like image 404
shri ram Avatar asked Mar 10 '12 13:03

shri ram


1 Answers

You can create a proxy server which passes traffic after a delay which can include a delay based on a bandwidth limitation. This is not as good as a real LAN in showing all the problems you can have, but it can be a good start.

like image 93
Peter Lawrey Avatar answered Sep 23 '22 15:09

Peter Lawrey