Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Nov : Re: Changing the gateway?

www.cryer.info
Managed Newsgroup Archive

Re: Changing the gateway?

Subject:Re: Changing the gateway?
Posted by:"Martin James" (nospam@dsl.pipex.com)
Date:Tue, 7 Nov 2006 15:00:42

>
> I've just seen this option, I introduce two gateways in the TCP/IP
> properties, and if one fails, Windows will try the other, doesn't it?

It's better than that.  All IP stacks will, (should:), route all packets
appropriately.  Whether at connect time, or during a post-connection
streamed transfer, a link going down, and so forcing a change of routing for
the packets associated with your connenction, should happen transparently to
the client/server, (mod any delay changes).

> I guess this means that every time I try a connection, Windows first tries
> to connect through the first one, and, after a time out, through the
second
> one. Am I right?

Well IP routing is quite complex but, esssentially, yes, something like this
should happen, given that the target IP could be reachable through both
links.

> So, until the first line works propertly, all connections will have a
little
> delay, as they try the first gateway?

Well, which link is tried first depends on the data in the routing tables.

Rgds,
Martin

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive