lug-bg: CBQ problem
- Subject: lug-bg: CBQ problem
- From: stoev@xxxxxxxxxxxxxxxxx (Julian Stoev)
- Date: Wed, 3 May 2000 21:46:32 +0900
Pisah na lista predi Velikden edin vypros, no lista beshe "v pochivka"
i maila ne beshe dostaven celi 5 dena!!!!
Mene lichno veche mi pisna da pitam zashto lista e baven, a poniakoga
i ne raboti. Ako list administratora ima zelanie, az mislia, che
triabva da obiasni tuka kakvo i zashto... I da kazva za takiva neshta
predvaritelno pone.
Anyway. Puskam vyprosa otnovo i utochniavam - vyprosa mi e predimno
kym vseki koito ima opit s ingress trafic shaper. Patch-nah kernel
2.2.14 i iproute2 za diff-server, no ne moga da go nakaram da
ogranichava vhodiashtia potok. Izhodiashtia mu hvanah cakata
krivo-liavo, no ako niakoi moze da osveti neshtata po-podrobno, mnogo
shte sym blagodaren.
V momenta opitvam na tukasnata mashina slednoto:
#! /bin/sh -x
#
TC=/root/iproute2/tc/tc
IPCHAINS=/sbin/ipchains
INDEV=eth0
NETWORK=147.46.115.0
NETMASK=255.255.255.0
#
############################################################
$IPCHAINS -A input -i $INDEV -s ! $NETWORK/$NETMASK -m 1
############################################################
$TC qdisc add dev $INDEV handle ffff: ingress
############################################################
$TC filter add dev $INDEV parent ffff: protocol ip prio 50 handle 1 fw \
police rate 5kbps burst 40 mtu 9k drop flowid :1
############################################################
Obache nishto ne stava - teglia si sys ftp s 850 kbps :((((
ipchains markira paketite uspeshno, no rezultata e nula.
Polzuvam slednite versii
ftp://lrcftp.epfl.ch/pub/linux/diffserv/dist/ds-8.tar.gz
Tova e patch za kernela i za iproute 2, koito pyk e slednata versia:
ftp://ftp.inr.ac.ru/ip-routing/iproute2-2.2.4-now-ss991023.tar.gz
--JS
----- Forwarded message from Julian Stoev <stoev@xxxxxxxxxxxxxxxxx> -----
Date: Fri, 28 Apr 2000 14:55:53 +0900
From: Julian Stoev <stoev@xxxxxxxxxxxxxxxxx>
To: lug-bg@xxxxxxxxxxxxxxxxxx
Subject: CBQ problem
Mail-Followup-To: lug-bg@xxxxxxxxxxxxxxxxxx
User-Agent: Mutt/1.1.12i
Imam slednia problem:
Mashina v BAN sys statichno IP x.y.z.219
NETMASK=255.255.255.192
NETWORK=x.y.z.192
BROADCAST=x.y.z.255
GATEWAY=x.y.z.252
Gateway mashinata e svyrzana sys internet prez modem 10KB/s.
Administratora na Gateway-a chesto plache, che x.y.z.219 mu zaemala
celia trafik, koeto razbira se ne e viarno, no taka ili inache toi ne
e kompetenten da se opravi posmyrtno s CBQ i traffic shaperi i go
myrzi da go napavi. Zatova iskam az da ogranicha max trafik na
x.y.z.219 prez gateway kym internet da e 5KB/s v rabotno vreme v
Bylgaria i po tozi nachin shte zatapia administratora na gateway-a,
che ne sym mu az problema. Eventualno prez noshtta i v sybota i
nedelia mislia da maham tova ogranichenie s cron job. Trafika kym
lokalnia subnet niama smisyl da se ogranichava. Az administriram
x.y.z.219 i tia e s 2.2.14 kernel. Iavno shte triabva da pusna CBQ.
Nikoga ne sym se zanimaval s tova. Osven tova sym na mainata si na
drugia kraj na sveta i ako obyrkam neshto s opititite si, shte zagubia
vryzka s mashinata.
Naskoro niakoi pusna chudesnia link http://www.ds9a.nl/2.4Networking/
Zapochvam da go cheta. Niakoi pravil li e neshto takova? Ima li
neshto, koeto moga da obyrkam? Vsichko ot tazi stranica li vazi za 2.2
kernelite? Vsiakakva pomosht e very welcome.
Znam che otgovoryt RTFM s pylna sila vazi za tozi sluchai, no prosto
niamam vreme za tova. Pritiskat me i srokove za izprashtane na edna
statia za publikacia, a administratora v Bg plashi, che shtial da
filtrira mashinata x.y.z.219 do edna sedmica, ako tova prodylzavalo.
--JS
----- End forwarded message -----
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|