MATLAB Answers

Packet Scheduling algorithms?

25 views (last 30 days)
Hi guys!
Could anybody please share matlab codes for packet scheduler ( Specifically, I am searching MATLAB codes for Round Robin scheduler which will be used to schedule the data packets to multi-paths (2 flows). In case of one sender node with 2 middle relay node with a receiver node, the sender will schedule the packets using Round Robin for receiver using those 2 middle nodes.
Any suggestions will be highly appriciated.
Thank you in advance.


Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 29 Feb 2020
Node_to_send_to = 1
while true
if input_queue_is_empty()
Current_packet = dequeue_input_packet()
send_packet_to_flow(Current_packet, Node_to_send_to)
Node_to_send_to = 3 - Node_to_send_to ;

  1 Comment

Mohmmad Abu Yousuf
Mohmmad Abu Yousuf on 29 Feb 2020
Thank you very much Mr Walter Roberson.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by