How to make packets flow from source node to destination node through multiple nodes?

StackOverflow https://stackoverflow.com/questions/22178607

  •  03-06-2023
  •  | 
  •  

문제

For example if I have 5 nodes in a wireless network. I want the packets from node 1 to reach node 5 through the path 2 -> 3 -> 4-> 5. How do i do it using ns2?

도움이 되었습니까?

해결책

You can specify the sender node index and receiver node index, you can't give a path (route) like 2 -> 3 -> 4-> 5. the path selection will based on protocol you used in your simulation (like AODV or DSR) but you can do the above thing by placing a nodes in sequence order.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top