C++ Program

已关闭 已发布的 Dec 13, 2002 货到付款
已关闭 货到付款

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

C 编程 工程 Java MySQL PHP 软件构架 软件测试 Visual Basic

项目ID: #2891749

关于项目

14个方案 远程项目 活跃的Jan 3, 2003

有14名威客正在参与此工作的竞标,均价$37/小时

progwriter

See private message.

$63.75 USD 在14天内
(620条评论)
7.7
ivantarsky

See private message.

$15.3 USD 在14天内
(76条评论)
6.5
vladkvw

See private message.

$165.75 USD 在14天内
(9条评论)
5.2
musharrafvw

See private message.

$17 USD 在14天内
(54条评论)
5.3
bokbokan

See private message.

$29.75 USD 在14天内
(78条评论)
5.2
ambrosevw

See private message.

$17 USD 在14天内
(27条评论)
4.3
lalesculiviu

See private message.

$30.6 USD 在14天内
(18条评论)
4.2
nabeelaJ

See private message.

$80.75 USD 在14天内
(16条评论)
3.9
teamvw

See private message.

$17 USD 在14天内
(36条评论)
3.8
javoreu

See private message.

$29.75 USD 在14天内
(39条评论)
3.7
davem2

See private message.

$11.05 USD 在14天内
(29条评论)
3.7
stefanc

See private message.

$21.25 USD 在14天内
(17条评论)
3.0
nickyro

See private message.

$8.5 USD 在14天内
(8条评论)
2.3
kompooter

See private message.

$11.05 USD 在14天内
(3条评论)
0.7
bestcodevw

See private message.

$29.75 USD 在14天内
(0条评论)
0.0