How to model the following statement in MATLAB ?

Hello all, I am considering the following Graph.
We can see that there are 8 nodes, out of which the 8th node is the final node and others are intermediate nodes.
The main aim in this is to design a algorithm for transmitting a packet with minimum delay toward the final node. And so for holding the packets, the queue will exist at each node. The number of new packet arrival at a particular node is assumed to be binomially distributed.
My query is how can I declare the packet arrival as binomial distribution with parameters n and p in MATLAB. And also what should be the length of queue?
Also, I am not getting what exactly does n denotes in this particular scenario ?
Any help in this regard will be highly appreciated.
sr = [1,2,2,2,3,3,3,4,5]; % various possible S-BS
ta = [2,3,6,8,6,4,7,6,6]; % various possible targets
G = graph(sr,ta); % models the Graph
plot (G);

6 Commenti

Any small hint will help me to proceed to next level....
Cant we solve such problem in MATLAB. I think this is the limitation of MATLAB.
Hi Charu Shree!
Can you please mention the problem statement in brief?
Torsten
Torsten il 27 Apr 2023
Modificato: Torsten il 27 Apr 2023
I guess it's somehow about queuing in computer networks, but without a precise formulation of the problem, nothing can be said.
charu shree
charu shree il 27 Apr 2023
Modificato: charu shree il 28 Apr 2023
@Pratham ShahThank u for ur response. I am sharing the details of this problem below:
I am working on a wireless network as shown in the diagram.
It consists of total 8 nodes, out of which the 8th node is the final node and others are intermediate nodes.
The main aim in this is to design a algorithm for transmitting a packet with minimum delay toward the final node. And so for holding the packets, the queue will exist at each node. The number of new packet arrival at a particular node is assumed to be binomially distributed.
My query is how can I declare the packet arrival as binomial distribution with parameters n and p in MATLAB. And also what should be the length of queue?
Any help in this regard is highly appreciated.
Hi @charu shree I have a few questions.
  1. Is there any fixed node which will generate the packets?
  2. If any node can generate the packet, will it broadcast the packet to all its connecting node?
Answering to your question about queue length, I suppose it should depend on the processing delay at each router and packet generation rate. If proper formulation of binomial distribution is available the optimal path can be determined.
PS: I'm quite weak at Computer Networks!! :(

Accedi per commentare.

Risposte (0)

Richiesto:

il 25 Apr 2023

Commentato:

il 30 Apr 2023

Community Treasure Hunt

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

Start Hunting!

Translated by