Eagor's Forums » CEN6520 - Project 2 » How will routers know which client is connected to which router ?
Author Topic: How will routers know which client is connected to which router ?
Mahi
Posts: 8
  Date Posted: 2005-02-01 06:21

can we include another field in the routing table, let me call "client associated" , to know which client is connected to which router.

I guess clients just send and receive messages through their associated routers without having any clue about the network topology. If this is the case dont we need to have some kind of a reference of the remote client somewhere.

As of now the routing table is only showing what router to take(as EXIT) depending on the end router.

For Example , the test case wants Client 1 to send a segment to client 3 (seg size = 500 bytes)

So in the above case Client 1 sends 500B to its router (as per the network, it sends to router A. How in the world will router A know where to forward the segment as there are two router connections to it - router C and router D. So somehow all the routers should be aware of all the clients and their routers in the network.

Are we supposed to hardcode every node ????

Does anyone have a better idea regarding this ????

I hope, I am not interpreting this wrong !!!
 
Steven Eagen
Posts: 14
Date Posted: 2005-02-01 15:14

The program description states: "a router and its connected client can execute on the same machine"

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.
Mahi
Posts: 8
Date Posted: 2005-02-01 19:37

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 whereabouts.