how we can program ping like functionality in simuink.

I am trying to simulate a cloud game architecture in simevents.
My basic model is M/M/1 queing system but I am not getting how to calculate return round trip time simevents.
I want to calculate the response time.
For example,scenario is:
Key strokes in the form of entities are going out from client,server recieveing the commands ,process it and then sending back the processed reponse to client.At client i want to calculate the total time used to process one key stroke.Basically ping time.
Is there any way I can calculate response time at client side in simevents/simulink?

4 comentarios

Aditi Gupta
Aditi Gupta el 22 de Oct. de 2019
Editada: Aditi Gupta el 22 de Oct. de 2019
Thanks for your response and appology for replying rate.
This link is quiet useful : Event Based Entity Generation .
But the problem is after running the the above model the Entity queue contains entities from both generators.
Where as what my requirement is the Entity Generator 1 shoud be used to initilaize the queue and the subsequent entities should be coming from Entity generator.
How can I control the Entity Input Switch so that after departure of first entity from Entitiy Generator1 it takes only entities generating from Entitiy Generator.
I think you should read the documentation of Entity Input Switch (here) to see what can be done. Maybe somehow you can use the control port so that the switch does what you want.
In case you want to limit the number of entities generated by Entity Generator 1, then maybe this discussion can help (here).
Thanks.that solved the purpose.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Discrete-Event Simulation en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 12 de Oct. de 2019

Comentada:

el 25 de Oct. de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by