1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

QOS - VOIP Problems. Been trying for over 2 months to fix this.

Discussion in 'Tomato Firmware' started by SjN85, Nov 2, 2010.

  1. SjN85

    SjN85 Networkin' Nut Member

    I will do my best to make this clear and short as possible.

    I have a router: Linksys WRT54G/GS/GL
    I have PAP2T Voip Adapter
    Tomato version: 1.28

    My maximum upload speed is: 30KB/sec
    My maximum download speed is: 300kb/sec

    My problem is: When I speak to somebody using my PAP2T VOIP Adapter, and at the same time I either try to load a website or have a utorrent running and as a result THE OTHER SIDE hears my voice choppy, but I hear them fine.

    So obviously something is wrong with the way the router distributes the Upload bandwidth.

    What I did to try to fix the problem:
    Under QOS settings, I added PAP2T adapter's MAC address and set the priority to HIGHEST. But for some reason, when using the phone, the router wouldn't detect it as Highest priority, it was labeled under "Low". So then instead of specifying the PAP2 Adapter's MAC address, I used its IP and I put it under SOURCE IP. That did the trick and the router detects the PAP2T Adapter under "HIGHEST".

    I got that figured out. But that didn't fix the problem. The other side still hears my voice choppy if I try to load a website or if I have utorrent running. I was having hard time telling the router how to distribute the upload speed according to my needs. So if somebody can tell me what I did wrong. Here are the screenshots of the settings:

    [​IMG]

    [​IMG]




    And for some reason the "LOWEST" Class manages to go over 85%. The screenshot here shows how it's at 79%. But it was able to reach 85%-90%

    [​IMG]


    Now, I don't care if the "LOWEST" class goes so high. I just need to make sure that "HIGHEST" class gets the highest priority, and gets all the bandwidth it needs. Is there a way to reserve 10KB/sec Upload just for the VOIP Adapter?


    Anyways, I will follow any method as long as it works. Please help me out.

    Thanks.
     
  2. syber

    syber Networkin' Nut Member

    not tryin to be mean but get a faster upload speed i have 192kbs up and down for my voip
     
  3. SjN85

    SjN85 Networkin' Nut Member

    You mean your upload speed is 192kbps(kilobits/sec). Mine is 240kbps(30KB/sec). 120kbps should be enough for VOIP. It's not the problem.
     
  4. srouquette

    srouquette Network Guru Member

  5. SjN85

    SjN85 Networkin' Nut Member

    PAP2 is the phone adapter. It uses 192.168.1.106.
    And no I wasn't calling anybody.

    I will try following your advice of unchecking ACK and checking the rest. Thanks.
     
  6. SjN85

    SjN85 Networkin' Nut Member

    It worked OK with utorrent running...
    But as soon as I reopened the browser and the webpages started reloading, it got VERY choppy again (to the person who's calling).

    And as it was being choppy, I took a screenshot:

    [​IMG]
     
  7. srouquette

    srouquette Network Guru Member

    edit: ok, you replied while I was typing :)

    Does 230 your very maximum output bandwidth?
    Did you follow the 70% or 80% rule?
    You shouldn't put your max in this box, try to put 70%. You said your max upload was 30k (which is 240kbits). Try to put 180kbits first, then raise it up to 210, 220 if it works.
     
  8. SjN85

    SjN85 Networkin' Nut Member

    I had to reverse the changes you asked me to make, I checked ACK and unchecked everything else. Because it would take 10-15 seconds for websites to load. It was unbearable.

    Yes 230/240 is the maximum. Ok I will try using 180. I will let you know. Thanks.
     
  9. SjN85

    SjN85 Networkin' Nut Member

    That didn't help. :(
     
  10. srouquette

    srouquette Network Guru Member

    How did you configure your upload with your torrent client?
    What is the limit?
     
  11. Toastman

    Toastman Super Moderator Staff Member Member

    You must uncheck ACK or your P2P "ACKS" will end up in the highest class and QOS will be compromised.

    I see now you have 0-512k in your phone class - so after that 512k your phone connection will drop into the default class. I think your biggest problem is simply not really understanding how QOS works, maybe reading through the QOS thread will help, if you have time.

    I would also suggest you delete the BULK class rule 1024-65535 and set your default class to LOWEST. The default rules in Tomato really aren't going to achieve much.
     
  12. SjN85

    SjN85 Networkin' Nut Member

    My utorrent is set to 5KB/sec MAX upload.

    Toastman, Ok, I changed it to 0KB+ and deleted the BULK class rule. and set the default class to LOWEST. And uncheced ACKS but also left the others unchecked.
     
  13. SjN85

    SjN85 Networkin' Nut Member

    Okay, disabling ACKS makes the websites load SUPER slowy... I had to re-enable it.

    I haven't had the chance to properly test it. I will do it tonight. I tried testing it a little, the caller said that voice gets a little shaky (when I try to load websites and have utorrent running) but she said it's bearable. So I guess that's an improvement.
     
  14. srouquette

    srouquette Network Guru Member

    WRT54GL, ACK unchecked, websites don't load slowly for me.
    Is it slow without uTorrent running aswell?
     
  15. Toastman

    Toastman Super Moderator Staff Member Member

    If that's happening it implies that the class used by your WWW stuff is being slowed down badly. BTW - the reason for the ACKS box unchecked... There's nothing wrong at all with prioritizing ACKS - that would make everything snappier - EXCEPT that unfortunately, once P2P downloads have started, the outgoing P2P stream consists mostly of ACKS. Thus ticking that box effectively gives your P2P the highest priority, and after that, you're lost.

    I think if I were you, I would simply wipe NVRAM, set default class (the one you want to use for P2P etc) and give it rate 1% and limit 10% for starters, with an incoming limit of 25% - and then create all your rules one at a time from scratch, starting with DNS in highest. Keep that class only for DNS. Next, set a rule for WWW. Once established that that works, (with nothing else using the internet) then start adding other stuff. P2P should mostly stay in the default class while you are doing it. Each rule you create will take something out of default and put it into another class, but one at a time, so you should be able to see what is going on.
     
  16. rhester72

    rhester72 Network Guru Member

    Is "small ACK" really a problem to prioritize? I believe it only applies to packets < 128 bytes, whereas P2P tends to add the ACK flag to large packets > 512 bytes (i.e. adds ACK to payload).

    I personally prioritize (small) ACK along with fairly heavy P2P without issue.

    Rodney
     
  17. Toastman

    Toastman Super Moderator Staff Member Member

    Here, if I prioritize ACKS, I get something like 50% of P2P connection count transferred to the highest class, currently that corresponds to about 230kbps. I suspect that for those of us with ADSL and the usual relatively small upload bandwidth, that would matter much more than someone on cable.
     
  18. Azuse

    Azuse LI Guru Member

    Fyi adsl tends to have higher uploads (as a percentage of bandwidth) that cable does because the cable providers use low upload speeds to limit download speeds. That's why qos systems have only really been developed to deal with uploads. These days however uploads are increasing, hence the inbound qos really needs to be fixed :)

    Delete your qos and start again.

    Un-check ack, make sure the rest is enabled.

    Sort your dns out, it should be set to 10KB, not 2KB, and it should be the highest class with voip second highest.

    Set the outbound to 70%.

    Go from there, reading tomatmans extensive qos posts might help.

    By the way, voip works fine with qos disabled, utorrent off etc, doesn't it?
     

Share This Page