Created a simulator that simulates a simple network.
Implemented a simple network that simulates the arrival of packets based on a specific probability, determines which routers receive them, and indicates whether/when they reach their destination. For this simulator to function correctly, the user must input information such as the packet arrival probability, the number of routers, the maximum size of each router, the maximum number of packets that could arrive at the dispatcher in one simulation unit, the minimum/maximum packet size, and the duration of the simulator.- Java JDK 15 or Higher
- Text Editor or IDEs
- Notepad (Worst Case)
- Eclipse
- IntelliJ IDEA
- Visual Studio Code
- Repl.it
Or
Do the following:
- Fork this repository by clicking the Fork button located on the top of the page
- Navigate to "Your Repositories" on GitHub and open the forked repo
- In the terminal, git clone the repo using the URL or SSH key
Or
Do the following in the terminal (the following example is run in the Windows PowerShell):
- Check if Java is installed on your computer
- Check if you can access the Java compiler
- Change the directory to the one that contains your Java files. Let's call this directory "JavaProgram"
- Compile the file you want to execute. Let's call this file "RunMe.java"
- Run the program
C:\Users\anon> java -version
If installed, it should display the Java version. If an error is presented, download Java from Orcale.
C:\Users\anon> javac
It should display some information about the compiler. If not, Follow the steps on this site.
C:\Users\anon> cd JavaProgram
=> C:\Users\anon\JavaProgram>
C:\Users\anon\JavaProgram> javac RunMe.java
This will create the class file "RunMe.class."
C:\Users\anon\JavaProgram> java RunMe.java
Please check the LICENSE.md file for more information.