Eagor's Forums » CEN6520 - Project 2 » Original Question by David
Author Topic: Original Question by David
Steven Eagen
Posts: 14
  Date Posted: 2005-01-30 23:25

The most important question I have is about the client. It will need to know the destination (IP’s) of the other computers in the network. Therefore my question is who was going to produce the loading routine(s) and routing table file? Have you done so? As I remember it the file was supposed to have

Source Dest Via MTU
Name IP IP MTU

A B’s IP C’s IP 150
A C’s IP C’s IP 150


I am asking this because I am not sure how you are going to get the IP’s of B,C,D ect into a file in unsigned long form.

I think that one person needs to write this or……… everyone needs to write the same thing otherwise we will end up with 5 or more differing statuses for where A,B,C,D,E,F are.
 
Steven Eagen
Posts: 14
Date Posted: 2005-02-01 10:32

Someone correct me if this sounds stupid but this is how I was thinking about loading all the information needed for our routers.

I have transformed the routing table in the program description to the format seen below.

A coral 143.88.65.12
B C 150
C C 150
D D 100
E C 150
F C 150

B oyster 143.88.65.18
A C 150
C C 150
D C 150
E C 150
F C 150

C whelk 143.88.65.24
A A 150
B B 150
D D 60
E F 70
F F 70

D conch 143.88.65.13
A A 100
B C 60
C C 60
E E 75
F E 75

E limpet 143.88.65.19
A D 75
B F 80
C F 80
D D 75
F F 80

F natica 143.88.65.27
A C 70
B C 70
C C 70
D E 80
E E 80

The first line in each section is the router Letter followed by the computer it will be running on which is followed by its IP address. The remaining 5 lines are the (Destination, Router, MTU).

I have written a loader to store all this information in a structure. Here are the files and an example usage: loader.h, loader.o, routing.txt and test.c