Show Bid Request
write a program that simulates a 4 interface ip router
Bid Request Id: 5667
|
|
|
Posted by: |
Larki (1 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 0.00%
|
Posted: |
Nov 28, 2001 3:07:15 PM EDT
|
Bidding Closes: |
Dec 12, 2001 3:07:15 PM EDT
|
Viewed (by coders): |
365 times
|
|
|
|
Description:
Write a program that simulates a 4 interface ip router.
All packets will come into interface "A" and will be routed to interfaces "B", "C" and "D". To simplify the program, traffic will only go in the one direction.
The input file will be a list of ip#'s in binary format. Your program will route the packets through interfaces "B","C" and "D" based on the attached routing table. The routing table can either be hardcoded into the program or you can read it into your program.
You may use any programming language.
The output from your program should be the ip# you read in followed by the interface letter the packet was routed through.
As demonstrated in class, your program should convert the ip #'s and netmasks to binary, "and" them and then compare the result with the destination to determine if the subnets match.
Do not compare the first 3 octets of the ip#'s in your program. This will result in points being taken off of your grade.
the ip # and mask for interface "A" = 10.1.2.3/24
the ip # and mask for interface "B" = 192.200.5.10/24
the ip # and mask for interface "C" = 192.150.7.20/24
the ip # and mask for interface "D" = 135.100.2.10/24
Routing table:
destination mask Next hop 128.6.30.0 255.255.255.0 192.200.5.11 33.33.32.0 255.255.255.0 192.150.7.21 40.23.101.0 255.255.255.0 192.150.7.21 50.60.70.0 255.255.255.0 135.100.2.11 45.45.4.0 255.255.255.0 192.200.5.11 150.7.200.0 255.255.252.0 192.200.5.11 130.3.4.0 255.255.252.0 135.100.2.11 128.235.0.0 255.255.0.0 192.200.5.11 30.0.0.0 255.0.0.0 192.150.7.21 0.0.0.0 0.0.0.0 192.150.7.21
input file:
130.3.5.3
7.10.1.3
130.3.6.4
128.235.251.1
7.10.1.6
33.33.32.1
150.7.200.5
150.7.203.100
128.6.30.3
50.60.70.1
45.45.45.45
200.1.3.3
203.3.4.100
40.23.1.1
128.235.200.5
30.3.1.4
example output for the first two records:
130.3.5.3 D
7.10.1.3 C
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.
Special Conditions / Other:
hi, i really need the bids from coders in between nov 31st till dec 4th. because its due on dec 10th . thanx a lot
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$25 (USD)
|
Nov 28, 2001 10:09:04 PM EDT
|
9.81
(Excellent)
|
|
|
I have worked extensively on C++ and can complete the code by your deadline. |
|
|
|
|
|