From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] TEQL questions
Date: Thu, 21 Feb 2002 06:36:05 +0000 [thread overview]
Message-ID: <marc-lartc-101427345917306@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101424276116149@msgid-missing>
I never tried it myself, but I found this in the kernel sources :
Short description:
------------------
+-------+ eth1 +-------+
| |==========| |
'network 1' ----| A | | B |---- 'network 2'
| |==========| |
+-------+ eth2 +-------+
Router A and B are connected to each other with two links.
The device to be set up is basically a roundrobbin distributor
over eth1 and eth2, for sending packets. No data ever comes in
over an teql device, that just appears on the 'raw' eth1 and eth2.
But now we just have devices, we also need proper routing. One way
to do this is to assign a /31 network to both links, and a /31 to
the teql0 device as well. That means, we have to have a transfer
network for this.
Routing: eth1_A: 10.0.0.0/31
eth1_B: 10.0.0.1/31
eth2_A: 10.0.0.2/31
eth2_B: 10.0.0.3/31
teql0_A: 10.0.0.4/31
teql0_B: 10.0.0.5/31
If you only have Linux boxes on each side, you can use /31
as subnet and so you can avoid wasting IP-Addresses for
broadcast and network addresses
You have to set up the IP-Addresses accordingly. Your default gw
should point to teql0.
In order to use this feature TEQL must be enables in your kernel.
You have to set up this framework on both sides (ie. Router A and B).
CAVEATS:
--------
You have to disable Reverse Path Filtering! Ie. I guess you do not want
to use this in a Firewall/DMZ area. :-)
Then there is the nasty problem of packet reordering. Let's say 6 packets
need to be sent from A to B - eth1 might get 1, 3 and 5. eth2 would then
do 2, 4 and 6. In an ideal world, router B would receive this in order,
1, 2, 3, 4, 5, 6. But the possibility is very real that the kernel gets
it like this: 2, 1, 4, 3, 6, 5. The problem is that this confuses TCP/IP.
While not a problem for links carrying many different TCP/IP sessions,
you won't be able to to a bundle multiple links and get to ftp a single
file lots faster, except when your receiving or sending OS is Linux,
which is not easily shaken by some simple reordering.
Stef
On Wednesday 20 February 2002 22:58, you wrote:
> Hi All -
>
> I've decided that TEQL will meet my needs. I am having a problem with it
> now and I have not been able to find any documentation in regards to
> this.
>
> I have added both of my interfaces (on both ends of the connections) to
> the teql0 interface:
>
> tc qdisc add dev eth1 root teql0
> tc qdisc add dev eth2 root teql0
>
> I did this for both ends and assigned an ip address to teql0 on both
> ends of 172.16.3.1/29 and 172.16.3.2/29 respectivly.
>
> ip addr add dev teql0 172.16.3.1/29
> ip addr add dev teql0 172.16.3.2/29
>
>
> I cannot get them to ping, I get Network is unreachable.
>
> I am I missing something ?
>
> I have the ip addresses of 172.16.2.1/29 + 172.16.1.2/29 on one box and
> 172.16.2.2/29 + 172.16.1.1/29 on the other machine. These links can see
> each other fine.
>
> Thanks in advance for any help.
>
> - Chris
--
stef.coene@docum.org
More QOS info : http://www.docum.org/
Title : "Using Linux as bandwidth manager"
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
next prev parent reply other threads:[~2002-02-21 6:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-20 21:58 [LARTC] TEQL questions Chris Murray
2002-02-21 6:36 ` Stef Coene [this message]
2002-02-21 22:57 ` Chris Murray
2002-02-22 9:22 ` bert hubert
2002-02-22 22:22 ` Chris Murray
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-101427345917306@msgid-missing \
--to=stef.coene@docum.org \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.