All of lore.kernel.org
 help / color / mirror / Atom feed
From: GGounot <g.gounot@laposte.net>
To: lartc@vger.kernel.org
Subject: PRIO qdisc traffic does not work as expected
Date: Wed, 18 Jun 2014 10:27:08 +0000	[thread overview]
Message-ID: <53A1697C.3040400@laposte.net> (raw)

Hello,

This is a simple case I started from lartc howto but I can't make it work.

The idea is :
* 3 priorities
* ftp.free.fr on prio 1
* 0.0.0.0/0 prio 2
* ftp.lip6.fr prio 3

Or, when Internet line is saturated and I download from ftp.free.fr, my 
download should supersede all other downloads (my download should take 
all bandwidth). On the other hand a download from ftp.lip6.fr should 
occur only when there is some available bandwidth.

But actually, when I download from ftp.free.fr and from ftp.lip6.fr at 
the same time, both downloads have the same speed.

This is the script :
_________________
#!/bin/bash

tc=/sbin/tc
ETH=eth1 #connected to the LAN

$tc qdisc del dev $ETH root 2>/dev/null
$tc qdisc del dev $ETH ingress 2>/dev/null

### PRIO ###
# qdisc "prio", 3 levels
$tc qdisc add dev $ETH root handle 1: prio
$tc qdisc add dev $ETH parent 1:1 handle 10: pfifo
$tc qdisc add dev $ETH parent 1:2 handle 20: pfifo
$tc qdisc add dev $ETH parent 1:3 handle 30: pfifo

PRIO1="212.27.60.27" #ftp.free.fr
PRIO2="0.0.0.0/0"
PRIO3="195.83.118.1" #ftp.lip6.fr
#
echo Prio 1 : $PRIO1
echo Prio 2 : $PRIO2
echo Prio 3 : $PRIO3

$tc filter add dev $ETH parent 1:0 prio 1 protocol ip u32 match ip src 
$PRIO1 flowid :1
$tc filter add dev $ETH parent 1:0 prio 3 protocol ip u32 match ip src 
$PRIO2 flowid :2
$tc filter add dev $ETH parent 1:0 prio 2 protocol ip u32 match ip src 
$PRIO3 flowid :3
_________________


When I run :
  tc -s qdisc ls dev eth1
I see the 2 FIFOs showing traffic going through.
I don't understand what I am doing wrong, any help will be appreciated.

Regards.
GG


             reply	other threads:[~2014-06-18 10:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-18 10:27 GGounot [this message]
2014-06-19 10:33 ` PRIO qdisc traffic does not work as expected Andy Furniss
2014-06-19 11:42 ` GGounot
2014-06-19 13:58 ` Andy Furniss
2014-06-19 19:06 ` Dave Taht
2014-06-29 11:08 ` GGounot
2014-07-06 17:14 ` 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=53A1697C.3040400@laposte.net \
    --to=g.gounot@laposte.net \
    --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.