http and download with 2 Queues

Hi,

Can we have 2 Queues for open http page and downloading files.
For example our PPPOE user after connecting, be able to browse web with 1mb/s and download only with 512kb/s speed.

Browsing is exactly the same as downloading. When you browse you are downloading HTML/JPG/GIF/SWF/whatever files.

That having been said, you could do something in the firewall rules to mark connections which have transferred more than n-bits differently and then put them in a different queue.

Thanks Nick,

But I want do 2 things :

1-When a user open a web page ( he gets html,jpg,… files ) he must use 1mb/s
2-When he want save exe, zip or some extensions, then he must use 512kb/s.

So I am using PPPOE, and I am sending RADIUS attribute from my RADIUS Server for data rates.

It doesn’t matter what you call it, downloading a .exe is exactly the same as downloading a .JPG. There is no difference.

Yes,
downloading a .exe is exactly the same as downloading a .JPG. but the content is diffrence.
What about L7 protocols??
I saw an post about deny yahoo messenger with L7 protocols.

browsing usually is a small connection, downloading is longer.

Use “connection-bytes” option in mangle and prioritize first 1Mbps (or more) of every HTTP connection.

No. Browsing and downloading are the same thing.

Which is what I have already said.

I agree . It is the best way .

macgaiver did not say that they are different things . he said : browsing usually is a small connection, downloading is longer.

I don’t want to get involved in an argument of semantics, but you cannot possibly argue that he didn’t say they were different when he specifically said how he thought they were usually different.

You cannot browse a web site without downloading, therefore the best you can say is “viewing web pages usually involves small downloads and acquiring music/executables/videos/whatever usually involves big downloads”.

Wording it this way which shows that there is no difference in the process leads to the answer to the problem which is, as we have already agreed’, to limit connections based on ‘connection-bytes’.

Arguing that ‘browsing’ is different to ‘downloading’ (by whatever method) confuses the issue and demonstrates a lack of understanding of the underlying technology.

There, that’s it. I won’t make any further comments on this thread. Promise!

I agree with Nick.

The problem is that the question was asked incorrectly. The question should have been “how to limit speed for download of certain file types or sizes”

you can also use burst maybe.

mahdavi if you will only trust file extension, people will just rename their exe files to jpg files and your limit will not work.

He could also transparently proxy the connection off to a squid server, which can very easily handle restrictions of speed on file types.

Just a thought.

Jimbo