Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Using Net::FTP::Throttle

by flexvault (Monsignor)
on Aug 03, 2012 at 11:52 UTC ( #985217=note: print w/replies, xml ) Need Help??

in reply to Using Net::FTP::Throttle


On a lan without going through a router, large block sizes will help, but once you use the Internet, the large blocks will cause fragmentation. Try using 1492 which is the most common packet size for routers on the Internet. If you are on a GigE Internet connection, I believe 14,920 can be used, but realize the first router that can't support that size will cause fragmentation.

Also realize that once more than one down-load is in progress, you may go over your bandwidth limit. On all of my Internet facing servers, I use the open source 'pure-ftpd' which allows bandwidth to be throttled by user, group, time of day, etc. You can chain-root the ftp session.

If you can't chance the server, then try to limit the number of concurrent ftp sessions and limit each individual ftp session to a value less than the max usage divided by the number of concurrent sessions.

Good Luck!

"Well done is better than well said." - Benjamin Franklin

Replies are listed 'Best First'.
Re^2: Using Net::FTP::Throttle
by Anonymous Monk on Jan 16, 2013 at 01:01 UTC

    Hello All, I am using the Net::Ftp for file transfer and was wondering if there was any way to display the throughput of the transfer using some FTP commands? Thanks in advance ! Arun

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985217]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2018-01-22 10:54 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (233 votes). Check out past polls.