Question: write in C program language. messages along these routes. You must use a link-state protocol, and use Dijkstra's algorithm to compute routes. Requirements You should
messages along these routes. You must use a link-state protocol, and use Dijkstra's algorithm to compute routes. Requirements 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. a Your programs should not talk directly to non-neighbors:"*m just as on a real network, all communication to non- neighbors should be via neighbors. ck Interface Requirements Your program should accept arguments as follows: myhost%./router id port host! porti host2 port? .. an ( 5 The id is a number between 0 and 19 inclusive that Zo ho 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 packets. anutout clust
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
