필터 지우기
필터 지우기

Packet Scheduling algorithms?

조회 수: 9 (최근 30일)
Mohmmad Abu Yousuf
Mohmmad Abu Yousuf 2020년 2월 29일
댓글: Mohmmad Abu Yousuf 2020년 2월 29일
Hi guys!
Could anybody please share matlab codes for packet scheduler (https://en.wikipedia.org/wiki/Network_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.

채택된 답변

Walter Roberson
Walter Roberson 2020년 2월 29일
Node_to_send_to = 1
while true
if input_queue_is_empty()
wait_for_input_packet()
end
Current_packet = dequeue_input_packet()
send_packet_to_flow(Current_packet, Node_to_send_to)
Node_to_send_to = 3 - Node_to_send_to ;
end
  댓글 수: 1
Mohmmad Abu Yousuf
Mohmmad Abu Yousuf 2020년 2월 29일
Thank you very much Mr Walter Roberson.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by