Networking Forums

Networking Forums > Wireless Networking > Wireless Internet > Least expensive connection?

Reply
Thread Tools Display Modes

Least expensive connection?

 
 
Dave Rudisill
Guest
Posts: n/a

 
      04-17-2006, 12:24 AM
A while back, somebody (probably Jeff) described how a system makes a
choice between two Internet connections when deciding which to use when
sending data. There was some mechanism for deciding which was the "least
expensive" connection, as I recall.

Can somebody point me to that post?

Thanks.

--
Dave Rudisill
 
Reply With Quote
 
 
 
 
Rico
Guest
Posts: n/a

 
      04-17-2006, 10:06 PM
In article <(E-Mail Removed)>, Dave Rudisill <(E-Mail Removed)> wrote:
>A while back, somebody (probably Jeff) described how a system makes a
>choice between two Internet connections when deciding which to use when
>sending data. There was some mechanism for deciding which was the "least
>expensive" connection, as I recall.
>
>Can somebody point me to that post?
>
>Thanks.
>


Groups.google.com ??

fundamentalism, fundamentally wrong.
 
Reply With Quote
 
Jeff Liebermann
Guest
Posts: n/a

 
      04-18-2006, 06:15 AM
(E-Mail Removed) (Rico) hath wroth:

>In article <(E-Mail Removed)>, Dave Rudisill <(E-Mail Removed)> wrote:
>>A while back, somebody (probably Jeff) described how a system makes a
>>choice between two Internet connections when deciding which to use when
>>sending data. There was some mechanism for deciding which was the "least
>>expensive" connection, as I recall.
>>
>>Can somebody point me to that post?


Failover? Load distribution? Route optimization? QoS? Whatcha
trying to accomplish?

There are several protocols that will do this. If you're using cheap
routers, it's called RIP or RIP-2 (Router Information Protocol)
dynamic routing. If you have two routers, with two seperate
connections to the internet, RIP will juggle the routing tables
depending on which route is "best" based on the fewest number of hops
(or cost). I don't recommend this approach because it only uses one
route at a time.

I much prefer a "load balancing router" which uses all routes at the
same time. See:
http://www.edimax.com/html/english/p...-PRIrouter.htm
http://www.xincom.com/twinwan.html
http://www.dlink.com/products/?pid=452
http://www.xrio.co.uk/QB/

If you have more than one path to the internet, such a load balancing
router will distribute the traffic between the two paths. There are
some limitations in terms of what can be done. If you have two
1.5Mbits/sec DSL lines, it will not combine the speeds of these two
connections into a single stream for downloading from a single server.
However, if you have two downloads running at the same time, from two
different web servers, such a router will allocate 1.5Mbits/sec to
each download. Methinks this is much better than switching or
failover. I had one such system with a DSL and an ISDN connection at
a customers. They were running for a week with the DSL dead, and
nobody even noticed the interruption.

There are other schemes and products available depending on what
you're trying to accomplish. Ummm.... what are you trying to
accomplish and what do you have to work with?

Note: This has little or nothing to do with wireless internet.

--
Jeff Liebermann (E-Mail Removed)
150 Felker St #D http://www.LearnByDestroying.com
Santa Cruz CA 95060 http://802.11junk.com
Skype: JeffLiebermann AE6KS 831-336-2558
 
Reply With Quote
 
Dave Rudisill
Guest
Posts: n/a

 
      04-18-2006, 03:09 PM
>Jeff Liebermann <(E-Mail Removed)> wrote:

>
>Failover? Load distribution? Route optimization? QoS? Whatcha
>trying to accomplish?


Not trying to accomplish anything. This is simple intellectual
curiosity, coupled with a lousy memory.

I recall seeing a post in which somebody used a simple command line tool
or set of tools (like tracert or arp or netstat, etc.) to determine
which of two available Internet connections was used by a system. Don't
even remember the OS, although I remember trying it on my Windows XP
laptop. There was some evaluation by the OS of which link was the "least
expensive."

--
Dave
 
Reply With Quote
 
Jeff Liebermann
Guest
Posts: n/a

 
      04-18-2006, 04:04 PM
Dave Rudisill <(E-Mail Removed)> hath wroth:

>I recall seeing a post in which somebody used a simple command line tool
>or set of tools (like tracert or arp or netstat, etc.) to determine
>which of two available Internet connections was used by a system. Don't
>even remember the OS, although I remember trying it on my Windows XP
>laptop. There was some evaluation by the OS of which link was the "least
>expensive."


That was a method that I used initially with routers that didn't have
RIP or load balancing. The customer would have an ISDN or DSL line as
their "main" connection to the internet. On the LAN was also a 3Com
3C886 or 3C888 dialup router as a backup. The script ran on every
computah on the LAN. When it detected a link failure, it would switch
the default route (gateway) from the DSL router to the 3C886 dialup
router. I can't seem to find the script but as I recall, it went
something like this (in pseudo code):

while true;
do
if ping returns "100% loss"
# switch default route to dialup router
route change 0.0.0.0 0.0.0.0 192.168.1.2 METRIC 1
else
# test if default route already points to DSL router
if [ route print | grep "default gateway = 192.168.1.1 ]
then
do nothing
else
# change default route to DSL router
route change 0.0.0.0 0.0.0.0 192.168.1.1 METRIC 1
endif
endif
# run every 10 mins
sleep 6000
done

Or something like that. I can dig out the original that I scribbled
as a KSH (Korn Shell) script, which should run under Cygwin, GNU
tools, or MKS Toolbox. I wrote the original for SCO Unix which I can
fish out of some backup tapes.

An application of the above method was when I had a really flakey
optical link across a freeway. I think this was in 1995. The optical
link would go up and down several times a day depending on what the
sun, smog, inversion zone, and street lights were doing. I had to
switch to dialup backup several times per day. If I only tested for
connectivity every 10 minutes, I would have an horde of irate managers
to deal with.

I had various schemes for rapidly switching to dialup, but ended up
with an ugly kludge. Instead of having each machine test the
connection, I had the server run the connection test every minute. The
script would post a text file containing the route command with the
proper gateway IP address. Every minute, the users machine would test
if this file had changed and run the route command contents if it had
changed. That drastically reduced the work at each workstation but
caused other problems. Switching in the middle of a web browser
session or download was almost a guaranteed hang, but the main
application tolerated the switch just fine. That was deemed better
than not having any connectivity at all, so they learned to live with
it.

I wanted to build a gateway machine that did all the switching, but
that was deemed too expensive, complex, or something. I eventually
"solved" the problem by getting rid of the optical link and ordering
an overpriced full time ISDN connection and an Ascend something router
which had built-in dialup failover.

--
Jeff Liebermann (E-Mail Removed)
150 Felker St #D http://www.LearnByDestroying.com
Santa Cruz CA 95060 http://802.11junk.com
Skype: JeffLiebermann AE6KS 831-336-2558
 
Reply With Quote
 
William P.N. Smith
Guest
Posts: n/a

 
      04-18-2006, 05:02 PM
Dave Rudisill <(E-Mail Removed)> wrote:
>I recall seeing a post in which somebody used a simple command line tool
>or set of tools (like tracert or arp or netstat, etc.) to determine
>which of two available Internet connections was used by a system. Don't
>even remember the OS, although I remember trying it on my Windows XP
>laptop. There was some evaluation by the OS of which link was the "least
>expensive."


Yeah, least-cost-routing. I'm not sure this was the previous answer,
but it's also the "Metric" collumn in "route print" from a command
prompt.
 
Reply With Quote
 
Dave Rudisill
Guest
Posts: n/a

 
      04-18-2006, 09:04 PM
>William P.N. Smith <(E-Mail Removed)> wrote:

>Dave Rudisill <(E-Mail Removed)> wrote:
>>I recall seeing a post in which somebody used a simple command line tool
>>or set of tools (like tracert or arp or netstat, etc.) to determine
>>which of two available Internet connections was used by a system. Don't
>>even remember the OS, although I remember trying it on my Windows XP
>>laptop. There was some evaluation by the OS of which link was the "least
>>expensive."

>
>Yeah, least-cost-routing. I'm not sure this was the previous answer,
>but it's also the "Metric" collumn in "route print" from a command
>prompt.


That was it! The message "Wireless AND ethernet to same router" from
Jeff on 2/5/06.

Thanks.

--
Dave
 
Reply With Quote
 
Jeff Liebermann
Guest
Posts: n/a

 
      04-19-2006, 01:52 AM
Dave Rudisill <(E-Mail Removed)> hath wroth:

>>Yeah, least-cost-routing. I'm not sure this was the previous answer,
>>but it's also the "Metric" collumn in "route print" from a command
>>prompt.

>
>That was it! The message "Wireless AND ethernet to same router" from
>Jeff on 2/5/06.


Oh, that message.
| http://groups.google.com/group/alt.i...de116db990c9be
I (mis)read the original question somewhat differently.

--
Jeff Liebermann (E-Mail Removed)
150 Felker St #D http://www.LearnByDestroying.com
Santa Cruz CA 95060 http://802.11junk.com
Skype: JeffLiebermann AE6KS 831-336-2558
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why is SMA cable so expensive? sillyputty Wireless Internet 24 05-09-2011 01:26 PM
Why SDSL so expensive? Anti Spam Bloke Broadband 25 01-18-2007 11:31 AM
Why are Cisco routers so expensive? Steve Broadband 39 04-24-2006 03:37 PM
Why is a bridge so much more expensive than an AP or router yuki Wireless Internet 4 06-30-2004 08:28 AM
Least expensive 801.11g bridge yuki Wireless Internet 1 04-15-2004 01:52 AM



1 2 3 4 5 6 7 8 9 10 11