Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started