LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 12-06-2004, 05:18 AM   #1
whiteunicorn
LQ Newbie
 
Registered: Dec 2004
Location: Ukraine
Distribution: SuSE 9.1
Posts: 9

Rep: Reputation: 0
Angry Upload bandwidth shaping (SuSE 9.1)


I have strange problems with my distro using ordinary Ethernet LAN. There is only two Linux hosts in the Windows network with 2003 Server PDC and only my workstation are part of Windows domain (another one is Web-server). Both linux hosts are based on SuSE Linux 9.1 but Web-server is almost fully recompiled from sources.

Problem: something limits upload bandwidth on my workstation to 120 Kb/s, i.e. to standard speed of DSL modem. Download speed is normal (about 5 Mb/s). Firewall is disabled and I can't find any traffic shaper or something like it.

If somebody knows how to solve this...

Thanks in advance

Last edited by whiteunicorn; 12-08-2004 at 01:20 AM.
 
Old 12-07-2004, 02:18 AM   #2
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
All uploads? Or just to your web server?
 
Old 12-07-2004, 02:24 AM   #3
whiteunicorn
LQ Newbie
 
Registered: Dec 2004
Location: Ukraine
Distribution: SuSE 9.1
Posts: 9

Original Poster
Rep: Reputation: 0
All uploads. To Web server via FTP, to Windows PDC using libsmbclient.
 
Old 12-07-2004, 02:08 PM   #4
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
I suspect that it is being routed over the internet link. What device is inbetween your workstation and the internet?

Post the output of "traceroute <webserver>" from the workstation.

What is the ip address/netmask of the workstation?
 
Old 12-08-2004, 01:30 AM   #5
whiteunicorn
LQ Newbie
 
Registered: Dec 2004
Location: Ukraine
Distribution: SuSE 9.1
Posts: 9

Original Poster
Rep: Reputation: 0
Router. Windows router :((( I was told to sysadmin that it's a realy bad idea to use Win2000 system as a router (and software firewall too), but it's out of my competention at this time to change it.

____
traceroute to websql.dopomoga.org.ua (192.168.1.10), 30 hops max, 40 byte packets
1 192.168.1.10 0.293 ms 0.078 ms 0.081 ms

Last edited by whiteunicorn; 12-08-2004 at 01:32 AM.
 
Old 12-08-2004, 02:33 AM   #6
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
You don't seem to have anything between you and the web server. "Best Practice" says they should be on a different subnet/physical network. W
What is the output of "tc" (traffic control) as it is the traffic shaper/policier for linux. i.e.

$ tc qdisc show
qdisc pfifo_fast 0: dev eth0 [Unknown qdisc, optlen=20]

My output is w/o any traffic shaping

Try it on the web server as well.

Are you getting any errors on the interface? (run ifconfig)
 
Old 12-08-2004, 03:09 AM   #7
whiteunicorn
LQ Newbie
 
Registered: Dec 2004
Location: Ukraine
Distribution: SuSE 9.1
Posts: 9

Original Poster
Rep: Reputation: 0
This Web-server now working only for internal use and to carry several PHP/Apache/MySQL projects as a simpliest way to share databases through one service.

My tc output is similar to your, ie without any traffic shaping on both my workstation and Web-server.

ifconfig runs with errors:0 too.
 
Old 12-08-2004, 03:42 AM   #8
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
I'm not too sure what's going on.
What sort of devices are in between the workstation and the web server (switch, hub)?

Verify that there is some sort of ethernet trickery going on:

$ ping -c 1 webserver
$ ping -c 1 windows-router
$ arp

Then compare the HWaddress to what ifconfig reports on the webserver. windows router and webserver should have different

Try getting a bandwith testing tool like iperf or try this:

webserver$ netcat -l -p 1234
workstation$ dd if=/dev/zero bs=4k count=2560|time netcat -q0 webserver 1234

You can then reverse it to downloads to the work station. Or add a -u to both netcats to test UDP performance.

Post the results, if you like.
 
Old 12-08-2004, 05:28 AM   #9
whiteunicorn
LQ Newbie
 
Registered: Dec 2004
Location: Ukraine
Distribution: SuSE 9.1
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you very much for your assistance.

I think it's a definitely software problem. I'll try to find out the problem root by myself.

Thank you again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth? mpls mikeg Linux - Software 3 08-13-2005 01:52 PM
Bandwidth Shaping With Linux dev_rhce Linux - Networking 2 08-05-2005 01:24 PM
CBQ upload shaping Soulstealer Linux - Networking 0 12-14-2004 06:58 PM
Bandwidth Shaping ketema Linux - Networking 0 06-23-2004 12:01 PM
bandwidth shaping - a little help chrisfirestar Linux - Networking 3 03-25-2004 12:33 AM


All times are GMT -5. The time now is 11:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration