DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default Anonymous Ftp is too slow

Hi everybody !

I've set my Ftp server following the official FAQ .. it does work (OpenBSD to OpenBSD) but unbelievely slow .. What might be the problem ? pf ?

Thank you so much !
Reply With Quote
  #2   (View Single Post)  
Old 24th July 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
it does work (OpenBSD to OpenBSD)
This is unclear. What site(s) were used?
Quote:
but unbelievely slow ..
Provide the output of the following commands (after substituting the hostname used for the string "<hostname>"):
  • $ ping <hostname>
  • $ traceroute <hostname>
If you are unfamiliar with these commands, see their respective manpages. ping(8) will continue until Ctrl-C is pressed. Ctrl-C may also be required for traceroute(8) as well.

Last edited by ocicat; 24th July 2012 at 11:54 PM.
Reply With Quote
  #3   (View Single Post)  
Old 25th July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

I mean both machines are OpenBSD ..
ping :
Code:
PING 192.168.1.3 (192.168.1.3): 56 data bytes
64 bytes from 192.168.1.3: icmp_seq=0 ttl=255 time=2.682 ms
64 bytes from 192.168.1.3: icmp_seq=1 ttl=255 time=4.783 ms
64 bytes from 192.168.1.3: icmp_seq=2 ttl=255 time=4.806 ms
64 bytes from 192.168.1.3: icmp_seq=3 ttl=255 time=3.814 ms
64 bytes from 192.168.1.3: icmp_seq=4 ttl=255a time=4.814 ms
64 bytes from 192.168.1.3: icmp_seq=5 ttl=255 time=4.817 ms
64 bytes from 192.168.1.3: icmp_seq=6 ttl=255 time=4.813 ms
64 bytes from 192.168.1.3: icmp_seq=7 ttl=255 time=3.809 ms
64 bytes from 192.168.1.3: icmp_seq=8 ttl=255 time=3.806 ms
64 bytes from 192.168.1.3: icmp_seq=9 ttl=255 time=3.805 ms
64 bytes from 192.168.1.3: icmp_seq=10 ttl=255 time=4.810 ms
64 bytes from 192.168.1.3: icmp_seq=11 ttl=255 time=3.804 ms
64 bytes from 192.168.1.3: icmp_seq=12 ttl=255 time=4.800 ms
64 bytes from 192.168.1.3: icmp_seq=13 ttl=255 time=4.804 ms
64 bytes from 192.168.1.3: icmp_seq=14 ttl=255 time=4.808 ms
64 bytes from 192.168.1.3: icmp_seq=15 ttl=255 time=4.813 ms
64 bytes from 192.168.1.3: icmp_seq=16 ttl=255 time=3.808 ms
64 bytes from 192.168.1.3: icmp_seq=17 ttl=255 time=6.800 ms
64 bytes from 192.168.1.3: icmp_seq=18 ttl=255 time=5.811 ms
64 bytes from 192.168.1.3: icmp_seq=19 ttl=255 time=5.814 ms
64 bytes from 192.168.1.3: icmp_seq=20 ttl=255 time=4.816 ms

--- 192.168.1.3 ping statistics ---
21 packets transmitted, 21 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 2.682/4.611/6.800/0.866 ms
traceroute :
Code:
1  192.168.1.3 (192.168.1.3)  4.776 ms  75.448 ms  15.882 ms
Reply With Quote
  #4   (View Single Post)  
Old 25th July 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
ping :
Code:
PING 192.168.1.3 (192.168.1.3): 56 data bytes
64 bytes from 192.168.1.3: icmp_seq=0 ttl=255 time=2.682 ms
64 bytes from 192.168.1.3: icmp_seq=1 ttl=255 time=4.783 ms
64 bytes from 192.168.1.3: icmp_seq=2 ttl=255 time=4.806 ms
...


This doesn't make sense on multiple levels:
  • If you pinged the ftp server, why is it a private RFC1918 address?
  • If this truly is the time needed for packets to come back from the server, your response time is 5x faster than mine.
Quote:
traceroute :
Code:
1  192.168.1.3 (192.168.1.3)  4.776 ms  75.448 ms  15.882 ms
daemonfowl, it would be good if you showed the next shell's prompt. As it is, it is unclear if this is the complete output or merely cherry-picked output.

Outside of not being able to reconcile why an external ftp server would have an private non-routable address, you are presenting data which indicates that the server may be across the street. Somehow, this seems a bit too fantastic to be true...
Reply With Quote
  #5   (View Single Post)  
Old 25th July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Sir @ocicat , I'm home .. having 4 machines as a practice field .. the 2 machines I test ftp on are in 1 room even .. :-) .. I don't know what else to provide that clearifies about the problem ..
Reply With Quote
  #6   (View Single Post)  
Old 25th July 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
the 2 machines I test ftp on are in 1 room even ..
So, the ftp server is one of your local machines? If not, what is the IP address of the ftp server used?
Reply With Quote
  #7   (View Single Post)  
Old 25th July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Yes it is .. just learning by trying .. not a business or something :-)
(Router is 192.168.1.1)
The IP address of the ftp server is 192.168.1.3 and I can access it and get data .. simply it's unbelievably slow responding .
Reply With Quote
  #8   (View Single Post)  
Old 25th July 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
Yes it is .. just learning by trying .. not a business or something :-)
(Router is 192.168.1.1)
Okay, this matches the information seen in the traceroute(8) & ping(8) output -- a local network with at least one router (two LAN's...) involved. Network response appears to be as expected.

Now, back to the original question as to why ftp(1) is perceived to be slow.
  • How is the ftp(1) server configured?
  • Provide the output of ifconfig(8) for the server, & one client.
  • Assuming one system is using an em(4) interface, & the interface number is em0, provide the output of the following command:

    $ ifconfig em0 media

    Your NIC cards may have different interface drivers, so you will have to substitute accordingly.
Reply With Quote
  #9   (View Single Post)  
Old 25th July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Quote:
How is the ftp(1) server configured?
I followed the FAQ .. login directory is /home/ftp/pub .. files chmoded as indicated and owned by root .. I have the following in rc.conf.local :
Code:
ftpproxy_flags="-R 192.168.1.3 -p 21 -b 192.168.1.1"
ftpd_flags="-DllUSA"
Quote:
Provide the output of ifconfig(8) for the server, & one client.
server : ifconfig -a
Code:
wpi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:19:d2:28:eb:bc
        priority: 4
        groups: wlan egress
        media: IEEE802.11 autoselect (OFDM24 mode 11g)
        status: active
        ieee80211: nwid Conceptronic chan 6 bssid 00:80:5a:5a:36:33 20dB
        inet6 fe80::219:d2ff:fe28:ebbc%wpi0 prefixlen 64 scopeid 0x1
        inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
a client using rum0 (Dlink Wireless Adapter)
Code:
rum0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	lladdr 00:19:5b:6c:d2:5e
	priority: 4
	groups: wlan egress
	media: IEEE802.11 autoselect (DS11 mode 11b)
	status: active
	ieee80211: nwid Conceptronic chan 6 bssid 00:80:5a:5a:36:33 115dB 100dBm
	inet6 fe80::219:5bff:fe6c:d25e%rum0 prefixlen 64 scopeid 0x4
	inet 192.168.1.4 netmask 0xffffff00 broadcast 192.168.1.255
In the case of an existing bridge , can it slow ftp ? (I've set hostname.bridge0)

ifconfig wpi0 media :
Code:
wpi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	lladdr 00:19:d2:28:eb:bc
	priority: 4
	groups: wlan egress
	media: IEEE802.11 autoselect (OFDM24 mode 11g)
	status: active
	ieee80211: nwid Conceptronic chan 6 bssid 00:80:5a:5a:36:33 23dB
	supported media:
		media autoselect
		media autoselect mediaopt monitor
		media autoselect mode 11a
		media autoselect mode 11a mediaopt monitor
		media autoselect mode 11b
		media autoselect mode 11b mediaopt monitor
		media DS1 mode 11b
		media DS1 mode 11b mediaopt monitor
		media DS2 mode 11b
		media DS2 mode 11b mediaopt monitor
		media DS5 mode 11b
		media DS5 mode 11b mediaopt monitor
		media DS11 mode 11b
		media DS11 mode 11b mediaopt monitor
		media autoselect mode 11g
		media autoselect mode 11g mediaopt monitor
		media DS1 mode 11g
		media DS1 mode 11g mediaopt monitor
		media DS2 mode 11g
		media DS2 mode 11g mediaopt monitor
		media DS5 mode 11g
		media DS5 mode 11g mediaopt monitor
		media DS11 mode 11g
		media DS11 mode 11g mediaopt monitor
		media OFDM6 mode 11g
		media OFDM6 mode 11g mediaopt monitor
		media OFDM9 mode 11g
		media OFDM9 mode 11g mediaopt monitor
		media OFDM12 mode 11g
		media OFDM12 mode 11g mediaopt monitor
		media OFDM18 mode 11g
		media OFDM18 mode 11g mediaopt monitor
		media OFDM24 mode 11g
		media OFDM24 mode 11g mediaopt monitor
		media OFDM36 mode 11g
		media OFDM36 mode 11g mediaopt monitor
		media OFDM48 mode 11g
		media OFDM48 mode 11g mediaopt monitor
		media OFDM54 mode 11g
		media OFDM54 mode 11g mediaopt monitor
		media DS1
		media DS1 mediaopt monitor
		media DS2
		media DS2 mediaopt monitor
		media DS5
		media DS5 mediaopt monitor
		media DS11
		media DS11 mediaopt monitor
		media OFDM6
		media OFDM6 mediaopt monitor
		media OFDM9
		media OFDM9 mediaopt monitor
		media OFDM12
		media OFDM12 mediaopt monitor
		media OFDM18
		media OFDM18 mediaopt monitor
		media OFDM24
		media OFDM24 mediaopt monitor
		media OFDM36
		media OFDM36 mediaopt monitor
		media OFDM48
		media OFDM48 mediaopt monitor
		media OFDM54
		media OFDM54 mediaopt monitor
	inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
(a client gets first quickly connected to ftp server but waits long to show prompt for user name and password .. I use anonymous & blank password to log in)

Last edited by daemonfowl; 25th July 2012 at 02:51 PM. Reason: typo
Reply With Quote
Old 25th July 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
server : ifconfig -a
Code:
wpi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:19:d2:28:eb:bc
        priority: 4
        groups: wlan egress
        media: IEEE802.11 autoselect (OFDM24 mode 11g)
        status: active
        ieee80211: nwid Conceptronic chan 6 bssid 00:80:5a:5a:36:33 20dB
        inet6 fe80::219:d2ff:fe28:ebbc%wpi0 prefixlen 64 scopeid 0x1
        inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
a client using rum0 (Dlink Wireless Adapter)
Code:
rum0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	lladdr 00:19:5b:6c:d2:5e
	priority: 4
	groups: wlan egress
	media: IEEE802.11 autoselect (DS11 mode 11b)
	status: active
	ieee80211: nwid Conceptronic chan 6 bssid 00:80:5a:5a:36:33 115dB 100dBm
	inet6 fe80::219:5bff:fe6c:d25e%rum0 prefixlen 64 scopeid 0x4
	inet 192.168.1.4 netmask 0xffffff00 broadcast 192.168.1.255
Highlights added.

daemonfowl, what does simplex mean?

http://www.inetdaemon.com/tutorials/..._simplex.shtml
Reply With Quote
Old 25th July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Thanks @ocicat !
Quote:
Half or Full-Duplex is required for connection-oriented protocols such as TCP. A duplex circuit can be created by using two separate physical connections running in half duplex mode or simplex mode
Ftp relies on tcp and tcp isn't connectionless a protocol .. right? , so what's the tweak now ?
Reply With Quote
Old 25th July 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
Thanks @ocicat !
My account name is ocicat.
Quote:
Ftp relies on tcp and tcp isn't connectionless a protocol .. right?
Correct, but the point I wanted you to see is that ifconfig(8) states that the connection is half-duplex -- meaning that communication is limited to one direction at a time.

Compare full-duplex.

jggimi mentioned to me another interpretation which I don't have time today to pursue.
Quote:
so what's the tweak now ?
Missing the spoon, eh?
Reply With Quote
Old 25th July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Looool !!
well it's somehacker@ocicat@daemoforums@Gaia@MilkyWay@soon-comingBlackHole@Ragnarok .. hopefully you'll be vitharr :-) .. I do have a login named vitharr@ragnarok lol .. on a flash running puffy ..

Is there anything wrong with this :
bridge0 :
add wpi0
add bce0
up
and
bce0 set :
up media 10base2

and I connect via wpi0 using dhcp ..
Reply With Quote
Old 25th July 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
Is there anything wrong with this :
You will be doing everyone (including yourself...) a great service if you would provide a diagram of your network. This is discussed in the "perfect newbies" thread you should know better than your name at this point. We certainly have pointed you to it for guidance countless times. We do so for a reason.

Your network topology is a complete unknown at this time. No one has any clue as to what you have connected to what, why it is done as it is, & whether any decisions made here adversely affects transmission rates.

I have the suspicion that to both understand & solve this problem you need to simplify the network -- just connect the "server" to a "client" using Ethernet. As it is, there are too many unknowns involved, & you have a very bad habit of not disclosing vital information until we have beaten the problem senseless. Wasting time might be minimized if you would simply state necessary details up front. Again, the thread referenced above can serve as a guide.

One of the things you should take away from this message is that one proven technique to problem solving & troubleshooting is to simplify the problem down to the simplest configuration which still exhibits the problem. This eliminates variables which have no effect early on, so time is not wasted chasing irrelevant details. Anything you do at this point which eliminates clutter & unnecessary details will make this process go much quicker.
Reply With Quote
Old 26th July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

I removed bridge0 and related bce0 .. It's now a simple home network :

Router : 192.168.1.1
5 Machines :
Acer is using wpi0 or bce0 for wired connection (as FTP server )
As Clients : Dell/iBook/iMac/CompaqMini .. I have to use either wired connection or that Dlink Wireless Adapter ..
Yesterday I tried to ftp connect to Acer from CompaqMini using Dlink Adapter.
Reply With Quote
Old 31st July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

ok .. it seems it's not an OpenBSD related issue .. rather the cause is simply my legacy hardware/chips/Router .. lol
I tried accessing that very ftp server using Fugu (on a MacOsX tiger box) .. that was horribly slow .. I tried both via airport & wired .. so OpenBSD Rox rocks & is not to blame :-)
If ocicat can prove me wrong and offer a clue maybe .. it'll make me happier ..
Reply With Quote
Old 31st July 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
ok .. it seems it's not an OpenBSD related issue .. rather the cause is simply my legacy hardware/chips/Router .. lol
...& since you have never supplied a network diagram, there is nothing anyone can do for you.

In case this has not been clear enough, your network toplogy is a complete mystery. No one knows what is connected to what, or can trace packets from any arbitrary computer/laptop/device to any or all other computers/laptops/devices on your network.

Last edited by ocicat; 31st July 2012 at 11:04 PM.
Reply With Quote
Old 31st July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

I tried it the other way round , an ftp session between Mr ibook (ftp server) and Sir Acer (client) :
Code:
$ ftp 192.168.1.2
Connected to 192.168.1.2.
220 sanshiros-ibook.local FTP server (tnftpd 20061217) ready.
Name (192.168.1.2:pawaan): sanshiro
331 Password required for sanshiro.
Password:
530 Login incorrect.
ftp: Login sanshiro failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
ftp> user
(username) sanshiro
331 Password required for sanshiro.
Password:
230-
    Welcome to Darwin!
230 User sanshiro logged in.
ftp> ls
200 PORT command successful.

pwd
425 Can't build data connection: Operation timed out.
ftp>
ftp> pwd
257 "/Users/sanshiro" is the current directory.
ftp> ls
200 PORT command successful.
then it keeps poor Acer waiting a while .. then a nice greet :
Code:
425 Can't build data connection: Operation timed out.
So neither wpi0/OpenBSD nor en1/iBook is the cause .. nor config .. I suspect Conceptronic router -of Jurassik Park- :-)

Now , what are a few preconditions to a fast and robust FTP server ?
Thanks !
Reply With Quote
Old 31st July 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
Code:
425 Can't build data connection: Operation timed out.
I have a suspicion the IP addresses used may not be all on the same segment, but no one can say with any authority because daemonfowl continues to refuse to supply a network diagram.

Last edited by ocicat; 31st July 2012 at 11:19 PM. Reason: clarity
Reply With Quote
Old 1st August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Hi ocicat ! (sirlessly greeting :-) )
It's a star : router provides internet access to 5 machines and Acer serving FTP access to the remaining 4 .. dhcp in all , no static IPs .
( You may suggest a particular form of network that is trouble-free as far as ftp serving is concerned .. you're welcome )
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DSL throughput slow. Is it the firewall? thefronny OpenBSD Security 5 27th October 2011 02:00 PM
Does anyone know why Gnome is so slow on BSD? TerryP General software and network 11 27th August 2010 06:06 PM
Why is FreeBSD dd so slow? sharris FreeBSD General 10 18th June 2010 08:33 AM
slow io from hdd knasbas OpenBSD General 3 25th July 2009 02:51 AM
Daemonforums very slow, times out a lot Weaseal Feedback and Suggestions 15 16th May 2008 12:44 AM


All times are GMT. The time now is 10:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick