Skip to contentSkip to conversation

Upload rate also down

LARTC Alexey Talikov 2 participants 5 messages May 20, 2002 – May 21, 2002

lore
Share & tools
lore
#0 lore raw

Problem

without qdisc 100mbit LAN (Sis900 AMD Duron 850 128RAM)-server

				   Realtek 8139 PIII-450 192RAN-client

I try ftp and ssh(scp)
upload ~7.5Mbyte/s
download ~8.5Mbyte/s

with tbf
tc qdisc add dev eth0 root tbf rate 1mbit burst 10k latency 50ms

download ~124kbyte/s
upload ~1500kbyte/s Why !!! (I try htb - the same problem) if I change 1mbit to 100kbit upload ~150kbyte/s ??? if rate > 4mbit upload ~6.5Mbyte/s
i.e. if rate < 5mbit upload~*download ??????? Any ideas !

-----------------------------------
mailto:[email protected]
BR
Alexey Talikov
FORTEK
-----------------------------------

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 8 lines

without qdisc 100mbit LAN (Sis900 AMD Duron 850 128RAM)-server

				   Realtek 8139 PIII-450 192RAN-client

I try ftp and ssh(scp)
upload ~7.5Mbyte/s
download ~8.5Mbyte/s

with tbf
tc qdisc add dev eth0 root tbf rate 1mbit burst 10k latency 50ms

And where do you execute that command? On the server?

Quoted 2 lines

download ~124kbyte/s
upload ~1500kbyte/s Why !!! (I try htb - the same problem)

You ceil the download to 1Mbit ( = 125 kbyte/s) and use all that bandwidth to download. But when you upload at the same time, there are also packets going in the download direction (confirmation packets and others). But your download is full, so they can't get thru. That's why upload is also slow and that's why you have to shape in both directions.
Or be clever, and give more bandwidth in the download direction for the packets needed for upload

Stef

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Alexey Talikov

I execute command on the server for shape outgouing data and do not upload at the same time and do not use any ingress police

Quoted 20 lines · Stef Coene
Quoted 8 lines

without qdisc 100mbit LAN (Sis900 AMD Duron 850 128RAM)-server

				   Realtek 8139 PIII-450 192RAN-client

I try ftp and ssh(scp)
upload ~7.5Mbyte/s
download ~8.5Mbyte/s

with tbf
tc qdisc add dev eth0 root tbf rate 1mbit burst 10k latency 50ms

And where do you execute that command? On the server?

Quoted 2 lines

download ~124kbyte/s
upload ~1500kbyte/s Why !!! (I try htb - the same problem)

You ceil the download to 1Mbit ( = 125 kbyte/s) and use all that bandwidth to download. But when you upload at the same time, there are also packets going in the download direction (confirmation packets and others). But your download is full, so they can't get thru. That's why upload is also slow and that's why you have to shape in both directions.
Or be clever, and give more bandwidth in the download direction for the packets needed for upload

Quoted 9 lines

Stef

Signature · 4 lines
[email protected]
"Using Linux as bandwidth manager"
    http://www.docum.org/
    #lartc @ irc.openprojects.net

-----------------------------------
mailto:[email protected]
BR
Alexey Talikov
FORTEK
-----------------------------------

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Alexey Talikov

I shape only download from server where i use tbf or htb (I don't try cbq red and other ) and i find that the upload speed also down
when I delete qdisc or if the shaping speed > 5mbit/sd0kbyte/s
upload speed up to hardware limit ( in other case upload_speed~10*download_speed download_speed < 2mbit/s furthure upload_speed approach to hardware limit) I don't upload and download at the same time
I understand difference between bit and byte
I understand difference between egress and ingress
But I wonder when I detect it problem
It may be only my problem hardware, software etc.
I try to recompile kernel with patches, without patches and some different combination of it(2.4.18 htb-3.4 patch imq-2.4.18.diff-9 patch
and some of patch-o-matic from iptables-1.2.6a - qouta,multiport,time,ttl,psd ....) but nothing changed
It's impossible that the egress influence on upload speed of any way ??? Thank you for advance !!
(sorry from my English)

Quoted 8 lines · Stef Coene
Quoted 2 lines · Alexey Talikov

I execute command on the server for shape outgouing data and do not upload at the same time and do not use any ingress police

So you shape traffic going from server to the client (download).

Quoted 1 line
Quoted 1 line
Quoted 1 line

tc qdisc add dev eth0 root tbf rate 1mbit burst 10k latency 50ms

Here you limit download to 1 mbit/s = 125 kilobyte/s. And this exaclly what you get :

Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

download ~124kbyte/s

And if you upload something, you only get 1500 kilobyte/s. But is this at the same you are downloading ? Or are you uploading when you are not downloading?

Quoted 1 line
Quoted 1 line
Quoted 1 line

upload ~1500kbyte/s Why !!! (I try htb - the same problem)

Stef

Signature · 4 lines
[email protected]
"Using Linux as bandwidth manager"
    http://www.docum.org/
    #lartc @ irc.openprojects.net

-----------------------------------
mailto:[email protected]
BR
Alexey Talikov
FORTEK
-----------------------------------

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#4 lore raw
In reply to Alexey Talikov

on 20.05.2002 I ask question about Upload rate also down
I think answer is that the TCP protocol issue when i upload to server packets with answer from the server shaping and upload speed also down I'm right ???
-----------------------------------
mailto:[email protected]
BR
Alexey Talikov
FORTEK
-----------------------------------

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/