All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sujith Chennupati <sujith.chennupati@gmail.com>
To: netfilter@lists.netfilter.org
Subject: does the inbound traffic affect the outbound on 2 different interfaces
Date: Wed, 22 Dec 2004 09:52:41 +0100	[thread overview]
Message-ID: <62916e504122200524d824825@mail.gmail.com> (raw)

hey guys

     i am regulating the traffic to & fro by my network through a
linux gateway , its behaving strange. i regulated Downlink to 2Mbps &
UPlLINK to 500Kbps. both perform well when those are done independent
i.e. one at a time

but when i do both from a client system ..the downlink however
continues at 2mbps but the uplink falls down to 100kbps?

is something wrong with my script or is there some other reason to
explain this ?????

downlink regulated on eth0, uplink on eth1
-----------------------------------------------------------------------------------------------------------------------
tc qdisc del dev eth0 root

tc qdisc add dev eth0 root handle 1: cbq bandwidth 30Mbit cell 8 avpkt
1000 mpu 64

tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 2000kbit
rate 2000kbit allot 1514 cell 8 weight 100kbit prio 2 maxburst 20
avpkt 1000 bounded isolated

tc class add dev eth0 parent 1:1 classid 1:2 cbq bandwidth 2000kbit
rate 300kbit allot 1514 cell 8 weight 30kbit prio 1 maxburst 20 avpkt
1000 split 1:0

tc class add dev eth0 parent 1:1 classid 1:3 cbq bandwidth 2000kbit
rate 300kbit allot 1514 cell 8 weight 30kbit prio 7 maxburst 20 avpkt
1000 split 1:0

tc filter add dev eth0 parent 1: prio 2 protocol ip u32 match ip dst
192.168.8.3 flowid 1:2
tc filter add dev eth0 parent 1: prio 2 protocol ip u32 match ip dst
192.168.8.4 flowid 1:3

tc qdisc del dev eth1 root

tc qdisc add dev eth1 root handle 2: cbq bandwidth 30Mbit cell 8 avpkt
1000 mpu 64
tc class add dev eth1 parent 2:0 classid 2:1 cbq bandwidth 700kbit
rate 700kbit allot 1514 cell 8 weight 70kbit prio 2 maxburst 20 avpkt
1000 bounded isolated
                                                                      
                                                            tc class
add dev eth1 parent 2:1 classid 2:2 cbq bandwidth 700kbit rate 100kbit
allot 1514 cell 8 weight 10kbit prio 1 maxburst 20 avpkt 1000 split
1:0
tc class add dev eth1 parent 2:1 classid 2:3 cbq bandwidth 700kbit
rate 100kbit allot 1514 cell 8 weight 10kbit prio 7 maxburst 20 avpkt
1000 split 1:0

tc filter add dev eth1 parent 2: prio 2 protocol ip u32 match ip src
192.168.8.3 flowid 2:2
tc filter add dev eth1 parent 2: prio 2 protocol ip u32 match ip src
192.168.8.4 flowid 2:3
----------------------------------------------------------------------------------------------------------------------

     expecting some help from any one


                                                 
                                                    -- 
                                                   sujith chandra
chowdhary CHENNUPATI


             reply	other threads:[~2004-12-22  8:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-22  8:52 Sujith Chennupati [this message]
2004-12-22 13:21 ` does the inbound traffic affect the outbound on 2 different interfaces Jason Opperisano

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=62916e504122200524d824825@mail.gmail.com \
    --to=sujith.chennupati@gmail.com \
    --cc=netfilter@lists.netfilter.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.