Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] some prio questions
@ 2001-06-25 19:55 Nikolai Vladychevski
  0 siblings, 0 replies; only message in thread
From: Nikolai Vladychevski @ 2001-06-25 19:55 UTC (permalink / raw)
  To: lartc

Hello,

I have some questions about prio queue discipline, hope somebody can
clear things up. I can't find good docs about it anywehere...


1) How does mapping works? For example, in this command

tc qdisc add dev ppp0 parent 2:1 handle 1: prio \
    bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1

Does this mean I have 16 priorities mapped this way?
Priority       BAND
   1      ->     1
   2      ->     2
   3      ->     2
   4      ->     2
   5      ->     1
   6      ->     2
   7      ->     0
   8      ->     0
   9      ->     1
  10      ->     1
  11      ->     1
  12      ->     1
  13      ->     1
  14      ->     1
  15      ->     1
  16      ->     1
 
2) On my local network, I want the machine 192.168.1.1 to have the
highest priority for every tcp/udp connection, and the 192.168.1.4 the
lowest, would the following setup correct?

tc qdisc add dev ppp0 root handle 10: prio
tc filter add dev ppp0 parent 10:0 protocol ip prio 16 u32 match ip src
192.168.1.4
tc filter add dev ppp0 parent 10:0 protocol ip prio  0 u32 match ip src
192.168.1.1

I also use ip tables to masq local machines on my DialUP linux machine,
like this:
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

I beleive the queueing is done before the packet is sent to the ppp0
interface, so I could use src 192.168.1.XX as u32 classifier, and after
that the masquerading is applied,so my rules will be matched, is that
correct?

(I use 2.4 kernel)

Thanks in advance

Nikolai

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-25 19:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-25 19:55 [LARTC] some prio questions Nikolai Vladychevski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox