All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amit Vyas <amitvyas_cse@hotpop.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Simple case here!
Date: Tue, 28 Dec 2004 14:52:35 +0000	[thread overview]
Message-ID: <41D17063.6030406@hotpop.com> (raw)


Hi All,

I want to setup a machine to connect to internet at a limited rate of 64 
kbps.
That machine is connected to a switch. so my LAN and Internet both comes 
from the same eth0.
How can I limit only the internet access from this machine to 64kbps and 
still using 100mbps for LAN

I am trying to implement this Please guide me If i am wrong.
I mark all the packets going out to LAN.
Then I can setup a root qdisc to classify packets based on that mark. If 
match  then I can setup a class to accept those setup a fifo for those 
packets. but if the packets are not for the LAN then i can pass them to 
other class which is tbf shaping at rate 64kbps.

Am i right on these lines.
This is the setup

+------------+   eth0        +-----------+   internet
| machine   |---------------|   Switch  |-------------
+------------+                  +-----------+

trying to get some thing like this
 
                         root qdisc  (CBQ or something)
                            /     \
                          /         \
                        /             \
                      /                 \
                class              class
Internal LAN Pcakets        Any other unclassified Packets
                  |                      |
                  |                      |
               FIFO             TBF (rate 64kbps)

Please Help me out with marking the packets and to classify them.
Just started off with Traffic Shaping.  gigles...... : )

It is alos possible to alternatively to mark internet traffic as it 
would be less in comparison to LAN and thus processor friendly.

Amit Vyas





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

             reply	other threads:[~2004-12-28 14:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-28 14:52 Amit Vyas [this message]
2004-12-29 11:41 ` [LARTC] Simple case here! Amit Vyas
2005-01-02  0:34 ` Andy Furniss

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=41D17063.6030406@hotpop.com \
    --to=amitvyas_cse@hotpop.com \
    --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.