All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with HTB bandwidth slicing when using TCP traffic
@ 2014-04-10 19:17 Slavica Tomovic
  2014-04-10 22:48 ` Andy Furniss
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Slavica Tomovic @ 2014-04-10 19:17 UTC (permalink / raw)
  To: lartc

Hi to all,

I am using CentOS 6.4 and have problems when I want to limit bandwidth
of TCP flow to some value smaller than 15 Mbit/s. Namely, I used iperf
to generate TCP traffic and limited bandwidth (with tc command) for
that flow on  6 Mbit/s. I got approximately 6 Mbit/s in average but
iperf, which I adjusted to report me statistics every second, showed
that in one second flow got 10 Mbit/s or more and than for few
consecutive seconds 0 Mbit/s. With UDP traffic everything works fine.
I expected that TCP bandwidth will fluctuate because of congestion
mechanism but not like this. When I reserve more than 15 Mbit/s
situation is pretty much OK.

Also I had similar problem when I tried to split link bandwidth (which
I had throttled previously on 10 Mbit/s with tc) between two TCP
flows. On the other side, TCPvsUDP and UDPvsUDP slicing works fine.

I had updated kernel version to 2.6.32-431 recently. I don't know did
this cause a problem because I didn't use tc htb mechanism in the
older version.

Do you have any idea why is this happening and how I can fix it?

These are commands I had used to create htb classes:

tc class add dev eth0 parent 1: classid 1:1 htb rate 10000kbps ceil 10000kbps
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 4000kbps ceil 4000kbps
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 6000kbps ceil 6000kbps

I will appreciate any help!

Slavica

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-04-14 22:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-10 19:17 Problem with HTB bandwidth slicing when using TCP traffic Slavica Tomovic
2014-04-10 22:48 ` Andy Furniss
2014-04-12 10:20 ` Slavica Tomovic
2014-04-13 19:43 ` Andy Furniss
2014-04-13 20:17 ` Dave Taht
2014-04-14  1:30 ` Horace
2014-04-14 22:40 ` Andy Furniss
2014-04-14 22:50 ` Dave Taht

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.