cpsc-441_a4's Introduction
Assignment 4 Author: Majid Ghaderi Email: [email protected] Note: First, start the relay server. Then, start routers. A topology file is needed to start the server. Running the Relay Server: ========================= Use the following script ./run.sh to start the server. To stop the server, type "quit" on the screen. To change the network topology, type "update" on the screen. In response to command "update", the relay server cycles through the list of topologies defined in the topology file. If it reaches the last topology then it moves back to the first topology. Using the above script, the server starts with a set of default parameters. You can edit the script to specify your own parameters. Specifically, the server takes the following parameters: port topology loss in the order specified, where, port: the server local port number. topology: the name of the topology file. loss: the packet loss probability at the server. Note: The loss probability specifies the ratio of lost packets at the server. The server randomly drops arriving packets. The probability that the server drops a packet is given by this parameter. Changing the Log Level ======================= The relay server uses standard Java loggers to output various messages. To change the log level, edit the file "logging.properties". Specifically, change the log level at the end of the file: cpsc441.a4.server.level = FINE to whatever level you desire. The logging.properties file should be passed to the Java runtime environment, as has been already done in the script "run.sh". No Software is Bug-Free! ======================== If you discover a critical bug in the server, let me know to fix it. You should however treat the server nicely or it may crash!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.