ftocc

This is a tough one.... Load balance Router Edimax

gryzor
Posts: 50
Member Since:
2007-05-22

I recently start playing with a Edimax Load balance router. My mission is to link up 4 dsl lines for outgoing calls, so that we have good upload speed and good redundancy.

Now my asterisk box has ip 192.168.0.5, with gateway 192.168.0.1 (Cisco Inet Leased line with public adress 196.x.x.20)

It has a secondary card with address 192.168.50.190, with no gateway, it handles phones that is on the 50 range.

The load balancer is 192.168.50.20,
The balancer has 2 ports active at the moment.

The one is a ppoe connection on a dsl
The second is 192.168.0.105 / gateway 192.168.0.1 (The cisco again, but it gives 105 another publc ip 196.x.x.30)

Ok both of the links are on and working no problems. The qos works fine.

Now I set my asterisk route table so that when i make a ooutgoing call it should use gateway 192.168.50.20 and not 192.168.0.1 as its set to default.

It works fine gives the call to the load balancer and the call goes through on whatever connection has teh most bandwith available. Wonderfull. Now I see that the call is busy on the dsl port of the balancer and i switch the dsl of, as to simulate a failure. The call drops, which is acceptable, but from now on i will never be able to make another call untill i switch the dsl back on again. Thus it does not failover to port 2 on the balancer.

The weird thing however is that if i put on a continuos ping from the asterisk to a dns server it will time out 4 times when i disconnect the dsl, and then just continue as normal on port2 as the load balancer routes it to port 2.

Thus asterisk switch over to the failover, but my trunk doesnt. Even if i reload the truk im still screwed.

Geez I really hope someone can just give me hint of to waht i could try .

Thnx guys!



bubbapcguy
Posts: 3355
Member Since:
2006-06-02
LB and FO

They are not the same.
does the router have support for both??
Your voip trunk does it need your IP ??? not all VOIP services work with FO
if they need to see you for the inbound / outbound then they make not work.
If they are waiting on you to send in the call info then it should work, if the router has failover support.



datu503
Posts: 236
Member Since:
2007-06-06
It is tough

We have experimented with clients both Edimax BR6524K, and with Dlink DI-LB604, for Load Balancing and Failovers. Used up too much time with no very good results. I personally gave up and just ask client to do the easier way - sign up for a more reliable T1, if perfection is required, then get a bonded T1... hehe.

Those LB units works well no problem with internet cafes. They are very very popular in Asia.

--

Walden, Certified FtoCC Admin & Tech
www.tech-r-us.com everythingIP
www.citivoip.com everythingVOIP



IcelandDreams
Posts: 311
Member Since:
2007-09-11
I'm not familiar with your

I'm not familiar with your router and it is way beyond my failover setup. But are you running multiple trunks, one over each WAN connection? If one line goes down your provider won't accept a call coming from a different line unless it comes over the trunk registered from that IP. It sounds like you'll have to make asterisk aware that it can't use a particular line if it is down. Load balancing would be tough because you need to decide at asterisk which trunk to use. Maybe I don't understand how this router works in conjunction with asterisk so it is hard to say but it seems that the load balance decision has to be made at the PBX perhaps with a clue from the router.

I couldn't say right now how that would work but it seems possible to script availability (presence?) or hint from the router which is then used to pick a trunk that goes down the desired WAN link.



gryzor
Posts: 50
Member Since:
2007-05-22
thnx guys

Bubba yes, the router supports failover and LB. Lb is done with rules, while fo, is just done round robin. The provider only wants my ip to send rtp back. Does IAX and SIP works on the same way? Might I have better results on a iax trunk?

Tx for the comments I really appreciate, I think Im gonna go with datus ideas on this. Im sure with a bit of tweaking I might get the trunks to use a specific wan port. thing is just I found that asterisk is not very clever in realising that the trunk is dead. It takes like 1 min and then failovers to the next trunk. (By that time the user puts down the phone and calls me hehe)I saw in the new FreePbx that there are a option for check trunk status. Im just not sure how it works. I have posted on the freepbx site, but with no reply. Does any one maybe know how to make the time asterisk will take before realising the trunk is dead shorter?

Thnx again!



jmvelez
Posts: 23
Member Since:
2006-06-07
Dual WAN Port Router

Your IP trunk (sip or iax2) register usually using the first port or your wan router. If you disconnect the dsl you need to re-register or reload the trunks again in order to use the 2nd port. I just check mine and trunks are registered in the 2nd port since I am having problems with my provider in wan port 1.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.