From: "Miguel Ángel Bernabé" <mabernabe@observatelecom.com>
To: lartc@vger.kernel.org
Subject: Unexpected result with PFIFO or PRIO queue disciplines
Date: Thu, 11 Sep 2014 09:19:30 +0000 [thread overview]
Message-ID: <54116922.3080902@observatelecom.com> (raw)
Using Ubuntu 12.10 (Linux version 3.5.0), i would like to do some basic
QoS on an ethernet interface. This ethernet interface is the default
route to the internet.
As i concern, the default Linux queue discipline configured for network
devices is the `pfifo_fast` queue discipline that gives priority
regarding TOS mark in the IP datagram header.
To test this queue discipline i am using `ping` with the option `-Q` to
set the DSCP value of the packets.
$ ping -Q 184 www.google.com
I start with a round-trip time about 50ms but as soon i start to upload
a file to Dropbox service via HTTP the ping time increases up from 50ms
to 1500ms and it becomes very unstable. I have checked that TOS mark for
Dropbox traffic is 0x0.
Then I am trying to accomplish the same task using `PRIO` queue
discipline. To test this queue discipline i create the root PRIO queue
discipline associated to the ethernet interface. Then i add a filter to
send ICMP traffic to the most priority queue:
# tc qdisc add dev eth0 root handle 1: prio
# tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip
protocol 1 0xff flowid 1:1
After configuring `PRIO` queue discipline i am failing with the same
result, ping time increases much again as soon i upload a file to any
hosting service.
I have checked tc statistics and i see that ICMP packets are already
sent to the band 0 while dropbox traffic is queued in a less priority queue.
$ tc -s class show dev eth0
class prio 1:1 parent 1:
Sent 7486 bytes 74 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
class prio 1:2 parent 1:
Sent 863935 bytes 1956 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
class prio 1:3 parent 1:
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
My gateway is connected to the internet via ATM/DSL connection, upstream
speed is 0.6Mbps and downstream speed is 10Mbps. If i configure the
router as a bridge between LAN/ATM ports and I try to connect via PPPoE
from LAN (so i configure the Qdisc for ppp0 interface) I get the same
unexpected result, so the bottleneck is not in my router.
Are `prio` or `pfifo_fast` queue disciplines broken in the Linux kernel?.
next reply other threads:[~2014-09-11 9:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-11 9:19 Miguel Ángel Bernabé [this message]
2014-09-15 9:18 ` Unexpected result with PFIFO or PRIO queue disciplines 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=54116922.3080902@observatelecom.com \
--to=mabernabe@observatelecom.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.