Find Jobs
Hire Freelancers

Code for Event simulation

£20-250 GBP

Anuluar
Postuar about 6 years ago

£20-250 GBP

Paguhet në dorëzim
*PLEASE NOTE I HAVE DONE SOME OF THIS CODE, THIS WILL GIVE YOU A HEADSTART* 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). Part 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. Part 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. Part 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 Part 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. Only libraries allowed to use: Matplotlib Random Csv ##NO USE OF "SIMPY" OR "QUEUE"##
ID e Projektit: 16150954

Rreth projektit

3 propozime
Projekt në distancë
Aktive 6 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
3 freelancers are bidding on average £207 GBP for this job
Avatari i Përdoruesit
I have over 10 years of Python experience in desktop/web/mobile applications as well implementation of hashing and routing algorithms. I've also extensive experience with Qt4/5. Please contact over chat for further discussions.
£250 GBP në 3 ditë
5,0 (47 përshtypje)
6,6
6,6
Avatari i Përdoruesit
hello,sir. I'm a professional programmer with 6 years of experience. I've already done this kind of project before. If you award me, I'll implement all of your requirements in a short time. ProjectName:Code for Event simulation Relevant Skills: Python,
£150 GBP në 1 ditë
5,0 (1 review)
1,8
1,8

Rreth klientit

Flamuri i UNITED KINGDOM
Bridgend, United Kingdom
0,0
0
Mënyra e pagesës u verifikua
Anëtar që nga jan 19, 2018

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.