Two routers

sorry for my bad langauge

very simply
i’ve got two isps

i want to load balance between them but i want the first one for downloading files like : rar , zip , wmv …
and the other one download files like : html , bmp , jpg ,…etc

Load balancing in the MikroTik is done based off of connections usually, you can do policy based routing, but that really won’t answer your question.

There is no way for a router to know what you are downloading, how fast you will download, or how much you are downloading at the start of a session. That is because that is not decided until NAT is already done. When downloading via HTTP, it’s all the same protocol, so as far as the router is concerned there is no difference between you downloading a web page, MP3 file, ISO, or any other file via HTTP.

The best you are likely to get is some form of QoS going where you set up different queues and priorities based on how much traffic a given connection has transferred, and then expand that to do it differently for each interface.

thanks

but

what is the Layer 7 Protocols

on some forums

they que files like flv , wmv , rar using that firwall

Can’t use that for routing for the reason Feklar gave you - if you use NAT, that decision has to be made before a layer 7 search can find the file type. After NAT has been decided you cannot go to the other path anymore.