By simulating a network cache using an event driven model where in the requested files follow a Pareto distribution, with a poisson file requests dis- tribution along with caching techniques such as LRU, Least Popular and FIFO, we try to understand the use of probability in an ever growing world of internet
- commons-math3-3.6.1.jar
- commons-math3-3.6.1-tools.jar
- commons-math3-3.6.1-tests.jar
Extract the zip file Project_Anmol_Nandigam.zip
- CumulativeMeasurement.java
- Driver.java
- Event.java
- EventPriorityQueue.java
- FIFOQueue.java
- input.txt
- Packet.java
- InputReader.java
- FileSelection.java
- FileMetadata.java
- Node.java
- Cache.java
- LRU Cache.java
- LPCache.java
- FIFOCache.java
- Place the jars in the same folder as java files
- To compile run:
javac -cp ":/your/path/commons-math3-3.6.1.jar:/your/path/commons-math3-3.6.1-tools.jar:/your/path/commons-math3-3.6.1-tests.jar" Driver.java
- To run:
java -cp ":/your/path/commons-math3-3.6.1.jar:/your/path/commons-math3-3.6.1-tools.jar:/your/path/commons-math3-3.6.1-tests.jar" Driver
- Here input file is input.txt as provided in the files
- Random seed is a long.
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)