Re: lug-bg: problem s trafika
- Subject: Re: lug-bg: problem s trafika
- From: danchev@xxxxxxxxx (George Danchev)
- Date: Sun, 9 Feb 2003 09:41:27 +0200
On 05 02 2003 19:35, Valentin Tzankov wrote:
> Nickola Kolev wrote:
> > Vasko wrote:
> > > imam DSL vrazka 512/256 Down/Up i 16 statitshni IP-ta ot koito
> > > napraktiak se izpolzvat 4 -tiri drugite komputri se maskirat - obshto
> > > sa 16 komputara
> > >
> > > problem se satoi w tova tshe kogato svaliam golemi fajlowe vsithko e
> > > ok, no kogato se browsva s malki pakeri dosta tshesto ne namira
> > > saitovete i pri reload se opravit.. a po niakoga i pri reload ne stava
> > > rabotata :( neshtat dosta tshesto se slutshvat sa mail.yahoo.com ili
> > > hotmail..
> > >
> > > zashto taka po niakoe vreme ICQ-to ne moje da se svarje sa servera si..
> > >
> > > s dve dumi neshto mirishe kato trasparen proxy.. ama ot ISP-to kazaha
> > > tshe niamalo takova neshto..
> > >
> > > moje li niakoi da mi kaje s kakav tool da testna neshtata za da razbera
> > > kakvo e polojenieto
> >
> >Ïðîáëåìúò òè íå å â ïðîçðà÷íîòî ïðîêñè, äîðè è äà ãî èìà. Ñìÿòàì, ÷å
> >ïðè÷èíàòà êà÷âàíå, ñâàëÿíå è ò.í. íà ôàéëîâå äà ñè ïðå÷àò, å â ãîëåìèòå
> > îïàøêè íà óñòðîéñòâàòà êàòî êàáåëíè, DSL è äðóãè ìîäåìè.
> >
> >Ïðîáâàé äà ñè ñâàëèø wondershaper îò òóê -> http://lartc.org/wondershaper/
> >
> >Åñòåñòâåíî, ùå òðÿáâà äà ñëîæèø íÿêàêúâ Linux âåäíàãà ñëåä DSL ìîäåìà.
> >
> >________________________________________________________________________
> >
> >Âñè÷êî íàé-õóáàâî,
> >Íèêîëà
>
> Ne mislia che DSL modemite imat problem s opashki, vse pak linijata si e
> samo tvoja,
> az imah podopen problem s NorthPoint i sled mnogo obajdanija i
> dosajdanija mi go razreshiha,
> no pyk vzeha che faliraha. Beshe mnogo intersno ponjakoga otnemashe
> minuti m/u
> pyrvia izpraten i pyrvia poluchen paket a sled tova 700mb film se
> svaljashe za nula vreme.
> Okaza se che problema e v localnia(Verizon) operator,
> tam stvalo zabavjaneto no taka i nikoj ne mi kaza kakyv e bil problema.
Âàñêî äàíî íå ñå âðúçâàé íà äóìèòå íà òîçè ñëàäêàð... Òîâà êîåòî ñå îïèòà äà
îáÿñíè Íèêîëà Êîëåâ (è òîçè áàíè÷àð Öàíêîâ è èäåÿ íÿìà) å, ÷å ïðè upload òâîÿ
åòåðíåò àäàïòåð êîéòî å ñ äîñòà ïî-ãîëÿìà ïðîïóñêàòåëíà ñïîñîáíîñò íàïðàâî
ïðåïúëâà ïî-áàâíèÿ ìîäåì, îñîáåíî è êîãàòî download-âàø è â òîçè ìîäåì...
ò.å. òóê èìàø íååäíîðîäíà ïðåíîñíà ñðåäà (â õàðäóåðíî îòíîøåíèå) êîÿòî ùå
êîðèãèðàø ñîôòóåðíî... Òîâà êîåòî Êîëåâ ïîñî÷è (wondershaper) íàâÿðíî ïðàâè
íåùî îò ñîðòà (Linux Advenced Routing and Traffic Control):
(ò.å ùå øåéïíåø èçõîäÿñòèÿ òðàôèê çà äà íå "óáèâà ìîäåìà.. òîé ìîæå äà áúäå
çàêà÷åí è íà USB äå ... ")
9.2.2. Token Bucket Filter
The Token Bucket Filter (TBF) is a simple qdisc that only passes packets
arriving at a rate which is not exceeding some administratively set rate, but
with the possibility to allow short bursts in excess of this rate.
TBF is very precise, network- and processor friendly. It should be your first
choice if you simply want to slow an interface down!
................
9.2.2.2. Sample configuration
A simple but *very* useful configuration is this:
# tc qdisc add dev ppp0 root tbf rate 220kbit latency 50ms burst 1540
Ok, why is this useful? If you have a networking device with a large queue,
like a DSL modem or a cable modem, and you talk to it over a fast device,
like over an ethernet interface, you will find that uploading absolutely
destroys interactivity.
This is because uploading will fill the queue in the modem, which is probably
*huge* because this helps actually achieving good data throughput uploading.
But this is not what you want, you want to have the queue not too big so
interactivity remains and you can still do other stuff while sending data.
The line above slows down sending to a rate that does not lead to a queue in
the modem - the queue will be in Linux, where we can control it to a limited
size.
Change 220kbit to your uplink's *actual* speed, minus a few percent. If you
have a really fast modem, raise 'burst' a bit.
--
Greets,
fr33zb1
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|