Thibor 15 - QoS for downstream per MAC

Discussion in 'HyperWRT Firmware' started by hurricane300, May 5, 2006.

  1. hurricane300

    hurricane300 Guest


    I just installed "Firmware Version: v4.71.1, Hyperwrt 2.1b1 + Thibor15" on my "WRT54G 3.1".

    @Thibor: Very perfect firmware !!! *thumbsup*

    Only one little question:

    I've seen the possibility to set an upstream bandwidth in Kbps for MAC. So far so well.

    How can I set an downstream bandwidth for MAC too???



    PS: My native language is German, therefore excuse please my mode of expression.
  2. NateHoy

    NateHoy Network Guru Member

    There is no downstream QoS in any of these routers. These are consumer routers, designed for an Internet connection that will tend to be FAR slower than the LAN the data is being queued on.

    You control outbound QoS by controlling how much is queued to the modem (the bottleneck) at any given time.

    In order to control inbound QoS, you'd have to have your ISP prioritize packets as they place them on the remote side of your modem, an area that you have no control over.

    Once you see the inbound packets, they have already been through the bottleneck. You could probably prioritize them on your LAN if you wanted to, but there would be no point. They are hitting a faster network segment already, prioritizing them would be useless.
  3. affer

    affer LI Guru Member

    This is an old thread, but it may be helpful to someone else looking for a method to control (throttle) downstream bandwidth by MAC/IP, etc.

    You have to drop packets to do it, which is an inefficent, harsh method to limit the bandwidth. But there are situations where it is useful nonetheless. Start with
    Robson's nice WRT54 script generator & then run the script on the router. When that MAC address exceeds the specified downstream qos, packets will drop & have to be resent. Most applications will adjust & oscillate around the throttled speed. It's possible though that this might break the odd program that can't cope with high packet loss.

    E.g. for a 5000kbps download line,
    MAC 11:11:11:11:11:11, &
    a desired downstream qos (throttle) of 1000kbps

    #WRT54 Script Generator v1.01
    #(C) 2006-2007 Robert "Robson" Mytkowski
    TCA="tc class add dev br0"
    TFA="tc filter add dev br0"
    tc qdisc del dev br0 root
    tc qdisc add dev br0 root handle 1: htb
    tc class add dev br0 parent 1: classid 1:1 htb rate 5000kbit
    $TCA parent 1:1 classid 1:10 htb rate 1kbit ceil 1000kbit prio 2
    $TFA parent 1:0 protocol ip prio 2 u32 match u16 0x0800 0xFFFF at -2 match u32 0x11111111 0xFFFFFFFF at -12 match u16 0x1111 0xFFFF at -14 flowid 1:10
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice