Re: Determining "default" address from Rendezvous resolve
Re: Determining "default" address from Rendezvous resolve
- Subject: Re: Determining "default" address from Rendezvous resolve
- From: Peter Sichel <email@hidden>
- Date: Fri, 20 Sep 2002 15:56:31 -0400
At 10:01 AM -0700 9/20/02, Dean Dauger wrote:
Alice's Mac is connected via 100BaseT and its Airport card to the same
network DHCP-managed and bridged by one Airport Base Station.
In this case, the design of your network is part of the problem.
If you were to route between your wireless and 100BaseT LAN instead
of bridging, it would be easy to distinguish them based on their
IP subnets. The whole point of routing is to segregate or route
traffic more efficiently. Bridging is not the best choice in this
situation.
If your network is not designed to distinguish and route
between slower and faster segments, having the remote peer try to
assign some performance metric to each IP address will be clumsy at best.
Routing is the network layer intended to choose the most efficient route
and redirect traffic when conditions change.
Notice that bridging also causes unnecessary congestion from
IP broadcast traffic on each segment. Probably not a problem
for small networks, but since you are concerned about
performance, it's one more factor to consider.
My workaround at the moment is to have my app on Alice's Mac supply that
extra bit of information by opening only one listener port on the "primary"
interface, then have Bob's Mac inquire on one address at a time until it's
found. (If Alice disconnected the 100BaseT before Bob's resolve, my app
automatically listens on the remaining interface, and there's no ambiguity.)
But it seems to me that the ZeroConfig/Rendezvous on Alice's Mac could
easily have suppled that extra information to Bob's Mac during the resolve
in the first place (maybe by attaching a rating to each address if they came
out of order), making the process simpler for me and quicker for Bob.
I think it would be simpler and more robust to configure your AirPort
Base Station to route between your networks, and design your Rendezvous
application to consider the network number in choosing the desired route.
Kind Regards,
- Peter
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.