Page 1 of 2 12 LastLast
Results 1 to 15 of 128

Thread: Wondershaper QoS discussion

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308

    Wondershaper QoS discussion

    In an efford to try to keep the firmware topics clean, this thread will discuss all questions and remarks regarding Wondershaper' QoS (or Bandwidth control).

    Some must-read info:
    Wondershaper info

    Oleg' FAQ for v1.7.5.9 firmwares

    WIKI (dynamic information system)
    Last edited by Styno; 30-10-2005 at 20:08.

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Styno, please remove bootCmd stuff, it's not correct.

  3. #3
    Join Date
    Nov 2003
    Location
    Eindhoven
    Posts
    2,407
    Quote Originally Posted by Oleg
    Styno, please remove bootCmd stuff, it's not correct.
    ghehe hit the EditText button then

    My little Asus Collection: Too much to fit inhere, my 2 babies:WL500w 1.9.2.7-10(OLEG) VX2SE Yellow Lamborghini notebook



    WL500g Forum Asus Files OpenDir

    Asusforum.NL -- Asusforum.DE -- Asusforum.RU -- Asusforum.PL -- Asusforum.NET -- Asusforum.EU -- Asusforum.BE -- Asusforum.ES -- Asusforum.INFO

  4. #4
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by Antiloop
    ghehe hit the EditText button then
    Too simple.

  5. #5
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Hmm, i didn't add the bootCmd section at all , someone else did. It's a WIKI...
    Last edited by Styno; 18-08-2004 at 09:31.

  6. #6
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Okay ontopic now:
    I configured the router with post-boot scripts to enable wondershaper and did a test:
    On the router I did: 'ping www.tweakers.net -t' and the pings returned in approximately 15 ms.
    Then I started a download and the pings went up to approximately 500 ms instantly.

    I reviewed the wshaper script and it explicitly provides priority to ICMP (ping e.g.) over other traffic. Why is my ping going sky high then? Queueing on the ISP side?

  7. #7
    Join Date
    Apr 2004
    Location
    frankfurt
    Posts
    84
    @styno or other people who running ws
    can you (or the others) adapt the wiki for the new firmware 1.8.1.7-1, i think there are only changes in file stuctur right?
    for a newbie in ws(that i'm), it would be a big help if there is the new structur in.

    @all
    i've read the whole qos thread and the wiki, but i didn't understand the structur of the script parameters. the only thing i wanted to do is:
    to set up my voip ip adapter (IP adresse: 192.168.1.4 in DMZ) to the high priority mode (most important the upload speed).
    the other traffic (up and download) should get lower priority.
    my connection is adsl (with 786down/128up). firmware on wl500g is 1.8.1.7-1 .

    my file post-firewall:
    Code:
    #!/bin/sh
    /sbin/wshaper start "$1" 700 100
    i know that the setting above is not correct for the setting i wish. but i don't understand the parameters. and if i enter "wshaper status eth1" nothing happend.

    if someone could help me, it would be nice
    thx a lot.

    ps: sry for my english ;-)

    --edit--
    if i enter

    wshaper start "$1" 700 100

    the following appears:
    Code:
    Cannot find device "root"
    Error: Qdisc "1:" is classless.
    Error: Qdisc "1:1" is classless.
    Error: Qdisc "1:1" is classless.
    Error: Qdisc "1:1" is classless.
    Unknown qdisc "1:10", hence option "handle" is unparsable
    Unknown qdisc "1:20", hence option "handle" is unparsable
    Unknown qdisc "1:30", hence option "handle" is unparsable
    Unknown filter "1:0", hence option "protocol" is unparsable
    Unknown filter "1:0", hence option "protocol" is unparsable
    Unknown filter "1:", hence option "protocol" is unparsable
    Unknown filter "1:", hence option "protocol" is unparsable
    Unknown qdisc "ffff:", hence option "ingress" is unparsable
    Unknown filter "ffff:", hence option "protocol" is unparsable
    did i something wrong?

    pls help! ;-)
    Last edited by xlephant; 17-10-2004 at 11:34.
    Athlon XP 2200+ runnig on ECS K7S5A
    512 MB DDR
    160 GB Samsung
    Ati Radeon 9500
    System running under Yoper.v2
    Router: WL500g

  8. #8
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by xlephant
    wshaper start "$1" 700 100

    did i something wrong?

    pls help! ;-)
    To run interactively, you will need to replace $1 with your WAN interface name (eth1 for static/dhcp, ppp0 for pppoe/pptp).
    $1 should be used inside post-firewall only.

  9. #9
    Join Date
    Apr 2004
    Location
    frankfurt
    Posts
    84
    thx oleg,

    do you also know a fast way how i can set up my voip device(192.168.1.4) to the highest priority? and reserve (if its in use) a upload and download speed of 100kb for it.

    i'm not a completly idiot, but it is so difficult to understand.
    Athlon XP 2200+ runnig on ECS K7S5A
    512 MB DDR
    160 GB Samsung
    Ati Radeon 9500
    System running under Yoper.v2
    Router: WL500g

  10. #10
    Join Date
    Jan 2004
    Location
    Lyon (France)
    Posts
    23
    do you also know a fast way how i can set up my voip device(192.168.1.4) to the highest priority? and reserve (if its in use) a upload and download speed of 100kb for it.
    You can put your voice traffic in the low delay queue by adding the following lines in the wshaper script
    tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
    match ip src 192.168.1.4 flowid 1:10


    Best, you can consider creating a new voice class with high priority and put voice traffic into it. You wshaper script will be something like :

    Code:
    # voice class
    tc class add dev $DEV parent 1:1 classid 1:100 htb rate 100kbit \
       burst 6k prio 1
     
    # low delay class
    tc class add dev $DEV parent 1:1 classid 1:10 htb rate ${UPLINK}kbit \
       burst 6k prio 2
    
    # bulk & default class 1:20 - gets slightly less traffic,
    # and a lower priority:
    tc class add dev $DEV parent 1:1 classid 1:20 htb rate $((9*$UPLINK/10))kbit \
       burst 6k prio 3
    
    tc class add dev $DEV parent 1:1 classid 1:30 htb rate $((8*$UPLINK/10))kbit \
       burst 6k prio 3     
    
    # put voice traffic into high priority class
    tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
           match ip src 192.168.1.4 flowid 1:100

  11. #11
    Join Date
    Apr 2004
    Location
    frankfurt
    Posts
    84
    @ark+

    thx a lot i will test it tomorrow.
    good night to all
    Athlon XP 2200+ runnig on ECS K7S5A
    512 MB DDR
    160 GB Samsung
    Ati Radeon 9500
    System running under Yoper.v2
    Router: WL500g

  12. #12
    Join Date
    May 2004
    Location
    France...
    Posts
    159

    VoIP

    Hi all,

    thanks to this huge thread i mnaged to modify the wshaper script in order to prioritize VoIP trafic, but i'm confused by some things.

    First of all here is my setup :
    1 Bewan ADSL2+ Modem on a 512/128 DSL connection
    1 Wl500g, connecting to the internet with PPPoE
    2 computers, both are connected through wireless. One of them is running P2P software (eMule)
    1 Linksys ATA adapter connected through cable to the WL500

    I'm note sur which interface i should set up for bandwidth management. I tried to use eth1, but it seems that this not sort of a solution since wshaper is shaping the connection underlying the PPPoE connection i.e. the data being shaped is the data moving through the modem and the router....
    So i made some tests using ppp0 and br0, trafic shaping seems to occur but when i make a VoIP call communication is not of a good quality.
    I can see that P2P trafic is being slowed down, but not enough and not fast enough i.e.: the longer the voIP call is, the better the quality will be. I have to wait about 2 minutes tio get acceptable quality.
    What should i do to have all other trafic drop immediatly when i make a VoIP call ?

    here is what i added to the script

    Code:
    # VOIP SIP
    tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
          match ip tos 0x68 0xff \
          flowid 1:10
    
    # VOIP RTSP
    tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
          match ip tos 0xb8 0xff \
          flowid 1:10
    i also commented all the upload stuff at the end of the script...

    Any advices ?

    thank you...
    The Struggle Continues...
    Asus WL500g #1 with fw 1.9.2.7-7f running as main home gateway, with Philipps PWC730k
    Asus WL500g #2 with fw 1.9.2.7-7f running as Wireless Client, running palantir 2.6 with SPCA5xx camera on 128MB generic USB key

  13. #13

    Thumbs up How-To now on wiki-page

    Thanks to this thread and the script written by Akbor (wow) I have now implemented WonderShaper in the WL-500g to take care of my VOIP. The quality of the conversations is now good also when surfing, down- or uploading or looking at my webcam from outside the LAN.

    Although I was a real newbie without a single experience in Linux, I was able to implement this script in the WL500g with some extra efforts. To help others I have put a simple How-To for newbies on the wiki-page:

    Please have a look to see if I forgot something or correct errors.

    Thank you all!

    Alexander
    Last edited by alfebre; 15-10-2007 at 12:15.

  14. #14
    Finally I was able to make it work for VOIP! The problem was that the copy-paste did not work for me well, I had many empty spaces in the code...

    here is the log:

    qdisc sfq 30: quantum 1518b perturb 10sec
    statistics truncated
    qdisc sfq 20: quantum 1518b perturb 10sec
    statistics truncated
    qdisc sfq 10: quantum 1518b perturb 10sec
    statistics truncated
    qdisc htb 1: r2q 10 default 20 direct_packets_stat 6
    statistics truncated
    class htb 1:1 root rate 900Kbit ceil 900Kbit burst 6Kb cburst 2751b
    Sent 14134137 bytes 19607 pkts (dropped 0, overlimits 0)
    rate 38502bps 96pps
    lended: 5989 borrowed: 0 giants: 0
    tokens: 34076 ctokens: 9955

    class htb 1:10 parent 1:1 leaf 10: prio 1 rate 240Kbit ceil 600Kbit burst 6Kb cburst 2367b
    Sent 353026 bytes 6064 pkts (dropped 0, overlimits 0)
    rate 3404bps 62pps
    lended: 6064 borrowed: 0 giants: 0
    tokens: 162134 ctokens: 24576

    class htb 1:20 parent 1:1 leaf 20: prio 2 rate 240Kbit ceil 600Kbit burst 6Kb cburst 2367b
    Sent 13801556 bytes 13555 pkts (dropped 0, overlimits 0)
    rate 35767bps 34pps backlog 17p
    lended: 7548 borrowed: 5989 giants: 0
    tokens: -34449 ctokens: -9546

    class htb 1:30 parent 1:1 leaf 30: prio 3 rate 120Kbit ceil 480Kbit burst 6Kb cburst 2213b
    Sent 722 bytes 6 pkts (dropped 0, overlimits 0)
    lended: 6 borrowed: 0 giants: 0
    tokens: 324268 ctokens: 28667

    I would be interested to know if these lines are correct for the Bitlord to place it under bulk priority?

    tc filter add dev $DEV parent 1: protocol ip prio 10 u32
    match ip sport 65534 0xffff
    flowid 1:30

    Can anyone post his working config again?

    Thanks.
    Last edited by piezomotor; 20-01-2008 at 03:10.

  15. #15
    (Перевел то что снизу!)

    Наконец заработал QoS- wshaper! VOIP качество поднялось нет вообще проподаний слов!

    Я обнаружил проблему- скопировались лишние пробелы в код при copy-paste, поэтому были ошибки при запуске пришлось "чистить" скрипт...

    Вопрос-прописал для Bitlord строчки но не знаю правильно или нет-

    tc filter add dev $DEV parent 1: protocol ip prio 10 u32
    match ip sport 65534 0xffff
    flowid 1:30

    а смог бы кто скинуть конфиг у кого работает?

    Спасибо!

Page 1 of 2 12 LastLast

Similar Threads

  1. WonderShaper/tc IP filtering
    By kolaf in forum WL-500g Q&A
    Replies: 1
    Last Post: 02-08-2005, 15:34
  2. wondershaper howto?
    By rexster in forum WL-500g Q&A
    Replies: 8
    Last Post: 01-05-2005, 14:06
  3. Wondershaper in Post-Firewall
    By britnet in forum WL-500g Q&A
    Replies: 3
    Last Post: 05-03-2005, 12:46
  4. Slow performance of WL-HDD - Discussion
    By Oleg in forum WL-HDD Q&A
    Replies: 20
    Last Post: 21-11-2004, 21:07
  5. Would it be possible to implement wondershaper?
    By Snigel in forum WL-500g Custom Development
    Replies: 25
    Last Post: 26-06-2004, 20:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •