Your assignment is to implement a UDP server that sends and listens for Hello packets, runs the election method, and puts the correct addresses for the designated and backup routers in its outgoing Hello packets. Your server must take four arguments: a value to use as its priority, the IP addresses Of two other Hello servers, and the port number on which it will listen (which will be the same as the port numbers where the other servers are listening).
• When the server is first started, it must begin sending Hello packets once every Hello interval.
• The server must be sent be ready to enter the “waiting” state after receiving its first Hello packet – but it must not be “waiting” until it receives that first Hello.
• Once the server enters “waiting” it must stay there and listen for additional Hello packets, for the duration of the “dead interval”.
• After the dead interval, the server must exit he waiting state. We will test your server by observing the addresses it sends out for the designated and backup routers, in reaction to the Hello packets we send it. You must treat all three servers as being on the same link