All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Neil Aggarwal" <neil@JAMMConsulting.com>
To: lartc@vger.kernel.org
Subject: RE: Tc does not seem to be limiting bandwidth
Date: Mon, 04 Feb 2013 01:17:48 +0000	[thread overview]
Message-ID: <000e01ce0275$725cb2f0$571618d0$@JAMMConsulting.com> (raw)
In-Reply-To: <000101ce00b1$2856c670$79045350$@JAMMConsulting.com>

Hello all:

I think I figured out something.

I am able to filter the download bandwidth to a VPS server, but
not the upload bandwidth.

How do I filter the upload bandwidth for a VPS server?

Thank you,
  Neil

--
Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 6 preinstalled
Unmetered bandwidth = no overage charges

-----Original Message-----
From: lartc-owner@vger.kernel.org [mailto:lartc-owner@vger.kernel.org] On
Behalf Of Neil Aggarwal
Sent: Sunday, February 03, 2013 5:56 PM
To: lartc@vger.kernel.org
Subject: RE: Tc does not seem to be limiting bandwidth

Hello all:

It looks like tc thinks I set a token bucket filter on my interface:

# tc -s qdisc ls dev v1252
qdisc tbf 8006: root refcnt 2 rate 1000Kbit burst 2Kb lat 5.0ms
 Sent 6788208 bytes 51190 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0

But I am still seeing bandwidth consumption hitting 80mbit/sec.

Any ideas why it would not be working?
This is a CentOS server with all the latest updates installed.
V1252 is a KVM guest running on the machine.

Thank you,
  Neil

--
Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 6 preinstalled
Unmetered bandwidth = no overage charges

-----Original Message-----
From: lartc-owner@vger.kernel.org [mailto:lartc-owner@vger.kernel.org] On
Behalf Of Neil Aggarwal
Sent: Friday, February 01, 2013 1:20 PM
To: lartc@vger.kernel.org
Subject: Tc does not seem to be limiting bandwidth

Hello:

I have these commands in my firewall startup script:

DEV=v1252
IP=a.b.c.d
/sbin/tc qdisc del dev $DEV root
/sbin/tc qdisc add dev $DEV root handle 1: htb default 30
/sbin/tc class add dev $DEV parent 1: classid 1:1 htb rate 10mbit
/sbin/tc class add dev $DEV parent 1: classid 1:2 htb rate 10mbit
/sbin/tc filter add dev $DEV protocol ip parent 1:0 prio 1 u32 match ip dst
$IP flowid 1:1
/sbin/tc filter add dev $DEV protocol ip parent 1:0 prio 1 u32 match ip src
$IP flowid 1:2

And tc qdisc list shows it has something for that dev:

qdisc htb 1: dev v1252 root refcnt 2 r2q 10 default 30 direct_packets_stat 3

But, I am still seeing huge consumption of bandwidth from that server.
Take a look at the attached graph.

Any ideas why tc is not limiting the bandwidth?

Thanks,
  Neil

--
Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos
Virtual private server with CentOS 6 preinstalled
Unmetered bandwidth = no overage charges

--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


  parent reply	other threads:[~2013-02-04  1:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-01 19:20 Tc does not seem to be limiting bandwidth Neil Aggarwal
2013-02-01 19:58 ` 叶雨飞
2013-02-01 19:59 ` Outofwall.com
2013-02-03 16:53 ` Neil Aggarwal
2013-02-03 21:35 ` Andrew Beverley
2013-02-03 23:34 ` Neil Aggarwal
2013-02-03 23:55 ` Neil Aggarwal
2013-02-04  0:35 ` 叶雨飞
2013-02-04  1:17 ` Neil Aggarwal [this message]
2013-02-04 22:57 ` Andrew Beverley
2013-02-04 22:59 ` Andrew Beverley
2013-02-05  0:11 ` Neil Aggarwal
2013-02-05  7:33 ` Andrew Beverley
2013-02-05  7:35 ` Andrew Beverley
2013-02-09  3:27 ` Neil Aggarwal
2013-02-10 11:03 ` Andrew Beverley

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='000e01ce0275$725cb2f0$571618d0$@JAMMConsulting.com' \
    --to=neil@jammconsulting.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.