Find Jobs
Hire Freelancers

Code for Discrete event simulation

£20-250 GBP

Cancelado
Publicado há mais de 6 anos

£20-250 GBP

Pago na entrega
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
ID do Projeto: 16107786

Sobre o projeto

6 propostas
Projeto remoto
Ativo há 6 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
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 em 3 dias
4,9 (74 avaliações)
5,6
5,6
6 freelancers estão ofertando em média £232 GBP for esse trabalho
Avatar do Usuário
Hello Here is a python expert you're looking for I can help you in this project. can do it Best Regards
£150 GBP em 3 dias
5,0 (18 avaliações)
5,7
5,7
Avatar do Usuário
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 em 5 dias
5,0 (11 avaliações)
4,3
4,3
Avatar do Usuário
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 statistics - experienced with data structures and algorithms - advanced algorithms - probability and modeling related projects. Your requirements are feasible also to be implemented with C/C++/Java moreover the python 2.7 or 3.4
£150 GBP em 3 dias
5,0 (7 avaliações)
3,2
3,2

Sobre o cliente

Bandeira do(a) UNITED KINGDOM
Bridgend, United Kingdom
0,0
0
Método de pagamento verificado
Membro desde jan. 19, 2018

Verificação do Cliente

Outros trabalhos deste cliente

Code for Event simulation
£20-250 GBP
Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.