Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "Peter Rabbitson" <rabbit@rabbit.us>
To: lartc@vger.kernel.org
Subject: [LARTC] T1 (hardware pre-shaped) shaping question
Date: Tue, 04 May 2004 04:00:40 +0000	[thread overview]
Message-ID: <006b01c4318c$5dacba80$020da8c0@rabbit> (raw)

Hello list. I have been trying to figure this out on my own, but I guess I
somewhat failed :) A linux router with external eth0 and internal eth1 acts
as a gateway for a number of machines utilizing a partial T1 line (512kbps).
Since the T1 is limited by hardware and by its nature to 64kbps per channel
the most I can pump out of it is up+down < 512kbps. If a number of
workstations amount to more than this limit the connection starts to choke
e.g. delivers very low performance even on simple http requests.
Right now I have HTBs installed on both eth0 and eth1.
The HTB with subclasses on eth0 governs outgoing traffic (smtp and http).
The HTB on eth1 on the other hand covers all request from the internal
clients (http, streaming audio etc). Everything works well except the fact
that both shaping trees have no idea about each other. Do I have the ability
to tie them together so COMBINED they do not exceed 512k? For example
somebody from the internet is pulling a file by http on eth0 and I am
pumping out smtp, totalling 56k/s. The workstation of my webmaster tries to
download a file through eth1 , and since it has priority the outgoing
traffic on eth0 is cut down to 30k/s and the webmaster gets an incomming
channel through eth0 --> eth1 --> workstation of 32k/s with some leftovers
for TCP checksums. Is this feasible? Or is there another traffic shaping
model different from tc that would treat eth0 as a two way pipe?
Thank you for your replies.

Peter

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

             reply	other threads:[~2004-05-04  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-04  4:00 Peter Rabbitson [this message]
2004-05-04 10:51 ` [LARTC] T1 (hardware pre-shaped) shaping question Stef Coene

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='006b01c4318c$5dacba80$020da8c0@rabbit' \
    --to=rabbit@rabbit.us \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox