Eagor's Forums » CEN6520 - Project 2 » Still not clear about my previous post
Author Topic: Still not clear about my previous post
Mahi
Posts: 8
  Date Posted: 2005-02-01 21:50

I am sorry if I was not clear in my previous post.

Yes I concur with the following statement

"If we run the clients on the same machine as the routers they connect to then we already have the information we need to determine the path to take to reach the client."

But a router will be connected to more than one router as my Example in previous post says so how will you decide which path to take to reach the end user. This decision should be made by the router using only the router table but as of know our routing table says nothing about the clients and their whereabou
 
Steven Eagen
Posts: 14
Date Posted: 2005-02-02 18:11

Here is what the network looks like visually:


Client 1 sends a segment to Client 3: segment size = 500 bytes

  • Client 1 wraps the 14byte header on the 500byte segment.

  • Client 1 knows Router A's IP because they are running on the same server. Port is hard coded

  • Client 1 sends segment to A

  • A parses header to get the destination client.

  • source address = 143.88.65.12
    destination address = 143.88.65.19

  • All clients connect to a router on the same server so the Client destination can be checked against the routing table to find the destination router.


  • Check the destination address against the struct RoutingTable array to find the letter of the router with an IP of 143.88.65.19. This will return E.

    Search A's table to find the next hop to E
    A coral 143.88.65.12
    B C 150
    C C 150
    D D 100
    E C 150
    F C 150

    It will tell you to go to C with an mtu of 150.

  • Router fragments and sends to C



Repeat this process until you reach your destination router then reassemble the packets and send the segment to client 3 which resides on the same server as E..
Mahi
Posts: 8
Date Posted: 2005-02-02 21:01

I believed we are not supposed to hard code the end router address. So this is what everyone wants do ????
Mahi
Posts: 8
Date Posted: 2005-02-02 21:12

So client 1 has to know to which router client 3 is connected to ???