Anuluar

Code for Discrete event simulation

A python code which performs a full discrete event simulation of a very simple Internet router. The python code should include:

1. Random arrival of packets

2. Random distribution of packet sizes

3. Multiple router output interfaces (‘servers’)

4. Serving schedule – the simulation will have to support both first-in-first-out (FIFO) serving,

and priority serving

The python code splits into four commands (Which the user can choose from such as A, B, C, D).

Command 1

A discrete-event simulation of an Internet router with a single input queue and a single output interface. The packets arrive following a random Poisson process, with a pre-defined average time between two arriving packets. The Poisson process is characterized with an exponential distribution of inter-arrival times. The packets have random sizes – the packet size should be calculated by the simulator at the packet arrival. The packet size should be considered a random variable with exponential distribution. In the case the packet has arrived and cannot be immediately served, it must wait for the first available opportunity to be served. The output interface (the server) should operate without any pauses, and should operate at a constant serving rate (this means that packet size determines the service time duration).

The code should request the average system parameters - average packet size and average interarrival time for the packets, and should calculate the following parameters:

- Average waiting time

- Average queue size

- Probability that the queue size is 0 at arrival of a new call

- Probability that the queue size is greater than 5 times the average packet size.

Command 2

The code from the previous command should be modified to support four separate servers (four output router interfaces). In the simulation, upon the arrival of the packet, the server (output interface) should be randomly identified for that packet, regardless of the queue sizes.

The code should request the average system parameters - average packet size and average interarrival time for the packets, and should calculate the same simulation results as in Command 1.

Command 3

The simulator should operate as in the previous commands, but this time at the generation (“arrival”) of the packets the packets should be assigned a class (“priority” or “economy”). The class assignment should be random, but on average 20% of the packets should be “priority” and 80% should be “economy”. The serving policies should be as follows:

- Policy A: one server should be dedicated for the priority packets only, and one for the economy packets. If there are no priority packets, that server should be empty

- Policy B: one server should be dedicated for the priority packets, and one for the economy packets. If there are no priority packets, the first waiting economy packet should be served.

The code should request the average system parameters – average packet size and average interarrival time for the packets, probability of the priority packets (default = 20%) and should calculate the following parameters:

- Average waiting time for both traffic classes

- Average queue size for both traffic classes

- Probability that the queue size for each of the classes is more than 5

- Probability that the queue size is 0 at arrival of a new packet

Command 4

Generate graphs representing the results of the simulation. These results should show how do the parameters calculated during the simulation (the average waiting time, the average queue size etc.) change during the simulation time – the xy graphs should have simulation time on the x-axis and the measured parameter on the y axis.

Please add Comments to explaining each part so to make it possible to tweak, change and understand.

Libraries allowed to use:

Matplotlib

Random

Csv

Aftësitë: Python

Shiko më shumë: discrete and continuous systems, model of a system, types of models, discrete-event simulation, steps in a simulation study., simulation discrete event, discrete event simulation, run discrete event simulation excel, discrete event simulation using excel, vba discrete event simulation, discrete event simulation excel, excel discrete event simulation, discrete event simulation job, discrete event simulation visual basic, job shop discrete event simulation, discrete event job shop simulation code, discrete event job shop simulation, excel code paste cut cell csv, source code export sql data csv file vb6

Rreth Punëdhënësit:
( 0 përshtypje ) Bridgend, United Kingdom

ID Projekti: #16107786

Fituar nga:

koustav2006

Hi...i am good at core python programming along with simulating discrete events and can help you write the code as per given specs.

£100 GBP për 3 ditë
(52 Përshtypje)
5.3

7 profesionistë freelancer dërguan një ofertë mesatare prej £203 për këtë punë

masterlancer999

Hello Here is a python expert you're looking for I can help you in this project. can do it Best Regards

£150 GBP për 3 ditë
(14 Përshtypje)
5.2
£400 GBP për 3 ditë
(1 përshtypje)
3.6
RushService

Feel fee to contact me for Code for Discrete event simulation .Shoot me message to discuss further more details .We provide the comments,images,videos,demos and live sessions in order to help the [login to view URL] payment Më shumë

£150 GBP për 3 ditë
(5 Përshtypje)
3.3
uzafar99

Hi, I can help you but I believe your budget is too small for the requirements you mentioned. Can we negotiate? Thank you

£444 GBP për 5 ditë
(6 Përshtypje)
3.3
Newtechprogramer

Hi,   I have gone through your project details and I assure I can do it  as  i got all the skills  required for this project. I have already completed a lot of similar  projects in the past so it is my pleasure to work Më shumë

£30 GBP për 3 ditë
(1 përshtypje)
2.8
profvipabutaleb

I'm computer engineering TA with 10+ years of experience - experienced with python and modeling - queuing theory and DES - I can do full theoretical analysis and programming of your project and collecting the required Më shumë

£150 GBP për 3 ditë
(3 Përshtypje)
2.2