<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Dear Steve;</DIV>
<DIV> </DIV>
<DIV>Really until now, I am not able to know if Vyatta has a DSL router (hardware) that can be used to do the QoS and bandwidth management without need to download the software of Vyatte and install at the server?</DIV>
<DIV> </DIV>
<DIV>I am trying actually not to let all the traffic passing Asterisk server (where Vyatte is installed), because making asterisk to be the bottle neck, then it is not a reliable solution for the network. Does not think so?</DIV>
<DIV> </DIV>
<DIV>The DSL bandwidth is 1 Mbps, so it is not enough.</DIV>
<DIV>The used codecs are G729</DIV>
<DIV>I am doing a ping, and no request time out .. but voice is cutting when other is browsing and downloading .. even no request time out ... but if others are not using internet for data browsing and downloading, voice is fine.</DIV>
<DIV> </DIV>
<DIV>And yes, I tried to use SIP instead of IAX, but also there is a problem in the voice when other are using the internet.</DIV>
<DIV> </DIV>
<DIV>What do u think?</DIV>
<DIV>Regards</DIV>
<DIV>Bilal<BR><BR>--- On <B>Mon, 12/6/10, Steve Totaro <I><stotaro@asteriskhelpdesk.com></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Steve Totaro <stotaro@asteriskhelpdesk.com><BR>Subject: Re: TCP port, VPN and resolving the cutting voice problem<BR>To: "bilal ghayyad" <bilmar_gh@yahoo.com><BR>Cc: asterisk-users@lists.digium.com, eng_mohd_taher@hotmail.com<BR>Date: Monday, December 6, 2010, 3:21 PM<BR><BR>
<DIV id=yiv1063132879>What you probably have is a DSL MODEM that can act as a ROUTER but most likely doesn't have to. <BR><BR>Your device probably has the same capabilities as most modems, the added features of NAT, DHCP, and whatever else. Normally you can disable that additional functionality. Now you just have a DSL modem.<BR><BR>If you can turn off the "ROUTER" functions on the MODEM then you can use a Vyatta server to be a "ROUTER" that just so happens to be connected to DSL, but could just as easily be connected to a gigabit connection.<BR><BR>Have you tried dumping IAX and using SIP?<BR><BR>Have you verified that your bandwidth is saturated? Have you run NTOP or a similar tool to see what is eating all the bandwidth?<BR><BR>I would start with the above because you have no idea what the problem is at this point.<BR><BR>You need to come to a consensus of how many simultaneous calls are going to be allowed. You can QoS
your VoIP all day long, but if one too many people get on the phone, everyone suffers. <BR><BR>Once you get that number, you have to do the math as far as bandwidth to reserve and limit the calls on the Asterisk side. If this leaves you with less than enough bandwidth for business activities, you have to get more bandwidth, it is that simple.<BR><BR>1. No, I don't think so. Why do you? You want voice to be #1 correct? I presume your LAN connection is faster than your DSL. Any modern server can handle these chores. You are talking DSL, so I cannot imagine you have much call volume, setups and tear downs. Any G729 or codec conversion should be very light. If you are using G729 then set the phones to use it as well. You could probably run World Community Grid and consume all of your cycles without a hitch (not recommended, I use it for burn in on new machines)<BR><BR>2. Yes, you could
setup a failover but I have servers with years of uptime and over a year of Asterisk not being restarted 1.0 and 1.2. Besides internal communication, would you not lose phone service now if your DSL "ROUTER" had to be rebooted? You don't need to activate the firewall if you feel NAT is adequate protection. QoS is your goal, the rest is just icing on the cake.<BR><BR>3. You are not tagging the packets for the ISP, you are controlling the rate at which protocols can consume on outbound traffic. You assign a port a piece of the pie, you have to let Vyatta know how big the pie is and how much of a slice each protocol gets.<BR><BR>Inbound is a little trickier, what kind of DSL do you have, inbound may not be the problem. If it is, last I knew Vyatta used "Rate-limiting" which would essentially drop packets from the sender causing them to slow down, the protocols that you do not limit will not drop packets. <A
href="http://en.wikipedia.org/wiki/Rate_limiting" rel=nofollow target=_blank>http://en.wikipedia.org/wiki/Rate_limiting</A><BR><BR>It has been a while since I looked at the latest and greatest or talked to the dev guys at Vyatta but they were discussing another method on the inbound side. Nevertheless, rate-limiting works for VoIP when correctly applied.<BR><BR>Use google for God's sake. There are very well done videos and diagrams that are specific to Asterisk, Vyatta, and all of your questions.<BR><BR><A href="http://www.google.com/search?q=vyatta+asterisk+qos" rel=nofollow target=_blank>http://www.google.com/search?q=vyatta+asterisk+qos</A><BR><BR>Thanks,<BR>Steve T<BR><BR>
<DIV class=yiv1063132879gmail_quote>On Sun, Dec 5, 2010 at 1:36 PM, bilal ghayyad <SPAN dir=ltr><<A href="http://us.mc539.mail.yahoo.com/mc/compose?to=bilmar_gh@yahoo.com" rel=nofollow target=_blank ymailto="mailto:bilmar_gh@yahoo.com">bilmar_gh@yahoo.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class=yiv1063132879gmail_quote>Dear Steve;<BR><BR>I am fully thanks for your advise and kindly help.<BR><BR>I am asking about the ability to use vyatte hardware DSL router because of the following reasons:<BR><BR>1) I am afraid to make Asterisk the gateway for the whole network and this might effect on the performance and might cause a big load, u do not think so?<BR><BR>2) If any problem happened regarding to the QoS rules or regarding to the firewall or any other thing and they decided to do hardware restart for the server (or the PC machine), then the Asterisk will be restarted and that will effect on the telephony service at the site?<BR><BR>3) I am afraid if we applied the QoS and bandwidth divsion at Vyatte, and then we route the traffic to the DSL router (which will do the NAT to ISP), then all the QoS rules will be ignored (or become not
effected)? What do u think?<BR><BR>Again, special thanks for the guide and special help.<BR><BR>Regards<BR>Bilal<BR>---------------------<BR>
<DIV>
<DIV></DIV>
<DIV class=yiv1063132879h5><BR>> I wouldn't bother with their hardware. You can run it<BR>> on most servers<BR>> providing the drivers for the hardware are supported.<BR>><BR>> Just install it on a box with two NICs and put it between<BR>> the router and<BR>> your LAN, both static IPs, simple<BR>><BR>> If I were you, I would find out what kind of DSL<BR>> modem you have, but if it<BR>> is doing NAT, DHCP, and all of that, you may be able<BR>> to turn off everything<BR>> except for the modem and use Vyatta for everything from<BR>> NAT, DHCP, QoS,<BR>> Squid, Firewall.<BR>><BR>> In this case, one NIC would have your public IP, I suspect<BR>> you would get it<BR>> via DHCP or worst case, from your ISP, the second NIC is<BR>> for the LAN, you<BR>> can add more NICs for various purposes as well.<BR>><BR>> I run Asterisk on Vyatta systems and it works great. <BR>> No
NAT issues with<BR>> remote phones, QoS, and whatever else your imagination can<BR>> come up with.<BR>><BR>> I also install Webmin and NTOP.<BR>><BR>> Just be aware that as soon as you activate the firewall,<BR>> everything is<BR>> blocked, so if you are going to use it as a firewall, get<BR>> as many rules in<BR>> place as you can think of.<BR>><BR>> Thanks,<BR>> Steve T<BR>><BR>> On Thu, Dec 2, 2010 at 3:14 PM, bilal ghayyad <<A href="http://us.mc539.mail.yahoo.com/mc/compose?to=bilmar_gh@yahoo.com" rel=nofollow target=_blank ymailto="mailto:bilmar_gh@yahoo.com">bilmar_gh@yahoo.com</A>><BR>> wrote:<BR>><BR>> > Dear;<BR>> ><BR>> > I understood that Vyatta is the solution for the QoS,<BR>> but I am not able to<BR>> > know if I can use a Vyatta hardware router to be DSL<BR>> router and I set my QoS<BR>> > in it to resolve the voice problem. Is it
possible?<BR>> ><BR>> > Thanks for the help.<BR>> > Regards<BR>> > Bilal<BR>> ><BR>> > ------------<BR>> > > > Thanks all for ur participation and kindly<BR>> advise.<BR>> > > ><BR>> > > > As I noticed that jitterbuffer could help if<BR>> the ping<BR>> > > does not have request time out but the voice is<BR>> also cutting<BR>> > > .. but in that case, I have to set the<BR>> jitterbuffer at the<BR>> > > IP Phones and Asterisk boxes.<BR>> > > ><BR>> > > > I have a polycom phone for example, and to<BR>> set the<BR>> > > jitterbuffer there are the following paramters:<BR>> > > ><BR>> > > > Payload Size<BR>> > > > Jitter Buffer Minimum<BR>> > > > Jitter Buffer Shrink<BR>> > > > Jitter Buffer Maximum<BR>> > > ><BR>> > > > When it use
the minimum, and when it use the<BR>> Shrink<BR>> > > and when it use the maximum?<BR>> > > ><BR>> > > > If to look at the asterisk (in the SIP or<BR>> IAX files)<BR>> > > then there are a paramters for the jitterbuffer<BR>> also, but<BR>> > > really I am not able to know when to use this and<BR>> when to<BR>> > > use this:<BR>> > > ><BR>> > > > jenable, jbforce, jbmaxsize,<BR>> jbresyncthreashold,<BR>> > > jbimpl, jblog<BR>> > > ><BR>> > > > How to use the jbresyncthreashold? In which<BR>> case?<BR>> > > ><BR>> > > > Regarding to the QoS, which will be need in<BR>> case<BR>> > > having a packet loose, correct?<BR>> > > ><BR>> > > > I just need to ask about something:<BR>> > > > What I will be able to do if my ISP did not<BR>> setup the<BR>>
> > QoS at his side? What kind of settings I can do<BR>> in my DSL<BR>> > > router (in case of Cisco, or in case of Linksys<BR>> that running<BR>> > > linux firmware)?<BR>> > > ><BR>> > > > From the other side, if I used linux server<BR>> to set the<BR>> > > QoS, so do I have to let all the network elements<BR>> to pass<BR>> > > this linux server (so it will be the default<BR>> gateway for<BR>> > > other elements)?<BR>> > > ><BR>> > > > Appreciate the kindly help.<BR>> > > > Regards<BR>> > > > Bilal<BR>> > > ><BR>> > > ><BR>> > ><BR>> > > If getting a second circuit is out of the<BR>> question.<BR>> > ><BR>> > > 1. Switch to SIP<BR>> > > 2. Install and Learn Vyatta for QoS (Squid<BR>> may help<BR>> > > you quite a
bit<BR>> > > as well) as your router (or whatever you<BR>> prefer) I<BR>> > > use the paid<BR>> > > versions of Vyatta but the free edition should<BR>> be<BR>> > > sufficient.<BR>> > ><BR>> > > I did the same setup over OpenVPN VSAT links in<BR>> Iraq, 700ms<BR>> > > ping<BR>> > > times. I used GSM and some tricks on the<BR>> Vyatta box.<BR>> > ><BR>> > > Originally, before I deployed the above, it was a<BR>> wild west<BR>> > > situation<BR>> > > like what you have now. Going from G729 to<BR>> GSM made a<BR>> > > big improvement<BR>> > > in conjunction with QoS.<BR>> > ><BR>> > > My theory on that is that G729 is already a very<BR>> lossy<BR>> > > codec, so any<BR>> > > more loss, garbled audio. GSM is less<BR>> lossy.<BR>> > ><BR>>
> > Switch from IAX to SIP was another huge<BR>> improvement, and<BR>> > > then finally<BR>> > > putting Vyatta and QoS as my router made calls<BR>> almost<BR>> > > crystal clear.<BR>> > ><BR>> > > There was the obvious lag time but users get used<BR>> to that<BR>> > > and wait a<BR>> > > second or two before speaking so they don't talk<BR>> over each<BR>> > > other and<BR>> > > the quality was five by five, except for solar<BR>> flares,<BR>> > > sandstorms,<BR>> > > rain. Things beyond my control.<BR>> > ><BR>> > > Thanks,<BR>> > > Steve T<BR><BR><BR><BR><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></td></tr></table><br>