Question: write the program in C language ID is your own host follow by your own port to connect to other host and port. The main
write the program in C language
ID is your own host follow by your own port to connect to other host and port.
The main thing about this program is to create a simulated link state protocol to see who is connected to who and find the shortest path from 1 end node to another end node




5 IMG_0244.jpg D-Q QO 2 3 Q Search messages along these routes. You must use a link-state protocol, and use Dijkstra's algorithm to compute routes. Requirements 5?????? pH/?? : C0 Tour fue wat You should write one program, called router, which you will run multiple times on some combination of computers. A real router would have physical links to a few neighbors. Instead, your simulated router will exchange UDP packets with a few neighbor programs. Your programs should not talk directly to non-neighbors;om just as on a real network, all communication to non- neighbors should be via neighbors. FSS Interface Requirements Your program should accept arguments as follows: myhost% ./router id port hostl port1 host2 port2 ... ulotprom cou ulot to tyis page The id is a number between 0 and 19 inclusive that lo hos should be unique over all programs in a particular simulated network. The port is the number of a UDP port on which your program should send and receive pa kets. Pnistovt Tlcicur padeet pa frem 30t, id ... cost 5 IMG_0244.jpg D-Q QO 2 3 Q Search messages along these routes. You must use a link-state protocol, and use Dijkstra's algorithm to compute routes. Requirements 5?????? pH/?? : C0 Tour fue wat You should write one program, called router, which you will run multiple times on some combination of computers. A real router would have physical links to a few neighbors. Instead, your simulated router will exchange UDP packets with a few neighbor programs. Your programs should not talk directly to non-neighbors;om just as on a real network, all communication to non- neighbors should be via neighbors. FSS Interface Requirements Your program should accept arguments as follows: myhost% ./router id port hostl port1 host2 port2 ... ulotprom cou ulot to tyis page The id is a number between 0 and 19 inclusive that lo hos should be unique over all programs in a particular simulated network. The port is the number of a UDP port on which your program should send and receive pa kets. Pnistovt Tlcicur padeet pa frem 30t, id ... cost
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
