Question: 1. Implement IP router function, which does the following: - takes as an input: - a 32 bit IP address - a routing table: a

1. Implement IP router function, which does the following: - takes as an input: - a 32 bit IP address - a routing table: a list of IP address - subnet mask - Interface (NIC card) pairs - does a binary AND of the subnet mask with the input IP address to extract the network part of the address - compares the network part of the address with each address in its routing table - if it matches with one of them , it routes the packet to the matching Interface - if it matches none of them , it routes the packet to the Default Router (Gateway) 2. Use this data in the program Address/mask Next hop 135.46.56.0/22 Interface 0 135.46.60.0/22 Interface 1 192.53.40.0/23 Router 1 default Router 2 
Hint: the IP addresses first need to be converted to binary in order to extract and compare the network part 
 3. Create a Graphical User Interface - showing which packet gets routed to which Interface at any given time. Use Java programming language for this project. 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!