C++ Program
$30-5000 USD
货到付款
cis456_project2Homework # 2 due last day of class. 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 either dotted decimal format or 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" = [url removed, login to view] the ip # and mask for interface "C" = [url removed, login to view] the ip # and mask for interface "D" = [url removed, login to view] Routing table: destinationmaskNext hop [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] 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 [url removed, login to view] 128.6.30.3 50.60.70.1 [url removed, login to view] 200.1.3.3 [url removed, login to view] 40.33.1.1 128.235.200.5 30.3.1.4 example output for the first two records:
## Deliverables
I would like to have this program by saturday evening. I tried to change the delivery date to saturday. I was not able to.
## Platform
The program could run in C++, Java, Visual Basic
项目ID: #2891749