Skip to content

Created a simulator that simulates a simple network.

License

Notifications You must be signed in to change notification settings

zhen69/Packet-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Packet simulator

Created a simulator that simulates a simple network.

Description

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.

Get Started

Dependencies

Installing

Download the src directory

Or

Do the following:

  1. Fork this repository by clicking the Fork button located on the top of the page
  2. Navigate to "Your Repositories" on GitHub and open the forked repo
  3. In the terminal, git clone the repo using the URL or SSH key
Reference: https://docs.github.com/en/get-started/quickstart/fork-a-repo

Executing program

Run directly in IDEs

Or

Do the following in the terminal (the following example is run in the Windows PowerShell):

  1. Check if Java is installed on your computer
  2. C:\Users\anon> java -version
    If installed, it should display the Java version. If an error is presented, download Java from Orcale.

  3. Check if you can access the Java compiler
  4. C:\Users\anon> javac
    It should display some information about the compiler. If not, Follow the steps on this site.

  5. Change the directory to the one that contains your Java files. Let's call this directory "JavaProgram"
  6. C:\Users\anon> cd JavaProgram => C:\Users\anon\JavaProgram>

  7. Compile the file you want to execute. Let's call this file "RunMe.java"
  8. C:\Users\anon\JavaProgram> javac RunMe.java
    This will create the class file "RunMe.class."

  9. Run the program
  10. C:\Users\anon\JavaProgram> java RunMe.java

Author

Zhen Wei Liao - @Zhen

License

This project is under the MIT License.
Please check the LICENSE.md file for more information.

Releases

No releases published

Packages

No packages published

Languages