Community discussions

MikroTik App
 
rborz
newbie
Topic Author
Posts: 29
Joined: Sat Nov 29, 2008 11:41 pm

Bandwidth limitation on CPE

Mon Sep 23, 2013 11:05 am

Hi guys!

What's the correct way to achieve bandwidth limitation and priorization of VoIP traffic on the CPE side (SXT 5HPnD)?

We want to do the bandwidth limitation on the customer CPEs to data rates with 1024k/512k, 2048k/768k, 3072k/1024k (downlink/uplink).

What we also want to achieve is to prioritize some kind of traffic, e.g. SIP and RTP.

AP and CPE are set to WDS with NV2. CPE runs in station-wds mode with NV2 and has a bridge interface bridging ether1 and wlan1.

Can somebody give me a hint on where to start?

Thanks a lot,
Robert
 
User avatar
laithmikrotik
Member
Member
Posts: 435
Joined: Wed Apr 13, 2011 3:18 pm

Re: Bandwidth limitation on CPE

Mon Sep 23, 2013 11:30 am

What's the correct way to achieve bandwidth limitation and priorization of VoIP traffic on the CPE side (SXT 5HPnD)?
from my view point ...the best way ,is by user proflie ( hot spot & pppoe )...
 
rborz
newbie
Topic Author
Posts: 29
Joined: Sat Nov 29, 2008 11:41 pm

Re: Bandwidth limitation on CPE

Mon Sep 23, 2013 12:28 pm

from my view point ...the best way ,is by user proflie ( hot spot & pppoe )...
Where will the bandwidth limitation then be applied? At the AP or the client?

We are already using is a FreeRADIUS server using Mikrotik-Rate-Limit reply attribute. But then the queue for bandwidth limitation will show up on the AC. I think this is the same as putting it in a local user profile.

We want the limitation/priorization at the client equipment to free resources at the APs.
 
haik01
Member
Member
Posts: 404
Joined: Sat Mar 23, 2013 10:25 am
Location: Netherlands

Re: Bandwidth limitation on CPE

Sat Oct 05, 2013 12:31 am

You set this at the router. Not at the AP or CPE.

It should be centralized, and managed by a "heavy" device, like RB2011 or higher. Let the AP's and CPE do only one thing: maintain the radio link (layer 1 and 2). Layer 3 and higher should be done by a router.
 
rborz
newbie
Topic Author
Posts: 29
Joined: Sat Nov 29, 2008 11:41 pm

Re: Bandwidth limitation on CPE

Thu May 29, 2014 12:06 am

Other vendors, e.g. Ubiquity and Alvarion are offering the opportunity to limit the upstream/downstream bandwidth directly at the CPE (wireless client).

Why use one heavy device with a strong CPU if you can distribiute the work to many small CPUs?

Another benefit of limitng the bandwidth directly at the customers CPE is that the customers aren't able to congest your wireless network with broadcast-storms and similar... it would be good to limit the amount of broadcasts, too.

I think it must be possible to achieve this at the customers CPE as all the other vendors are doing this already... any ideas how to achieve that correctly for layer-2 traffic (PPPoE)?
 
User avatar
scotthammersley
Member Candidate
Member Candidate
Posts: 230
Joined: Fri Feb 22, 2013 7:16 pm
Location: Jackson, MS
Contact:

Re: Bandwidth limitation on CPE

Thu May 29, 2014 12:21 am

rborz, you are correct in stating that it should be controlled as close to the edge as possible.

Although, without the SXT acting as the AC for the clients, it becomes a little more of a manual process im afraid. One place to start is to come up with a common schema for QoS at the edge. Maybe something like a 4 bucket system hierarchy, Voice/Video/Priority/Data. Then assign a common bandwidth across your wireless edge devices.

This would control your traffic generally across your core, then leave the AC to control actual user limitations.

I know its not quite what you wanted, but as I said, its not quite doable the way you expected.

Guess you could write a script and use API calls to the edge, but that would get really complex.
 
n21roadie
Forum Guru
Forum Guru
Posts: 1949
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Re: Bandwidth limitation on CPE

Thu May 29, 2014 2:41 pm

I remember a user mentioning they had configured their CPE's, even downloading at 100% of available bandwidth, when SIP was detected a set bandwidth was then reserved to allow VOIP traffic,
 
rborz
newbie
Topic Author
Posts: 29
Joined: Sat Nov 29, 2008 11:41 pm

Re: Bandwidth limitation on CPE

Sat May 31, 2014 12:57 am

scotthammersley, n21roadie: Thanks a lot for your suggestions! At the moment I don't bother about prioritization of different types of traffic, e.g. best-effort, voip, p2p etc. Now, in the first step, I just want to limit the maximum allowed bandwidth. Prioritization will be the next step after bandwidth limitation is working... ;-)

What I recently tried to limit the bandwidth of our customers directly at the SXT and to allow only PPPoE traffic:
/interface bridge settings
set use-ip-firewall=yes use-ip-firewall-for-pppoe=yes

/interface bridge
add name=bridge1

/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=wlan1

/interface bridge filter
add action=accept chain=forward in-bridge=bridge1 in-interface=ether1 mac-protocol=pppoe out-interface=wlan1
add action=accept chain=forward in-bridge=bridge1 in-interface=ether1 mac-protocol=pppoe-discovery out-interface=wlan1
add action=drop chain=forward in-bridge=bridge1 in-interface=ether1 out-interface=wlan1

/queue simple
add max-limit=1M/6M name=queue1 target=ether1
This works very well for some time... but after some minutes, hours or even days it suddenly stops passing traffic. Well, it doesn't really stop passing all the traffic, it just passes it really slow, e.g. at 80 Kbps for up- and downstream or less. After disconnecting the power supply for a minute everything works again, but only for quite some time.

Any ideas why this happens and how this can be solved?


Robert.
 
User avatar
scotthammersley
Member Candidate
Member Candidate
Posts: 230
Joined: Fri Feb 22, 2013 7:16 pm
Location: Jackson, MS
Contact:

Re: Bandwidth limitation on CPE

Sun Jun 01, 2014 7:33 pm

Gotcha.

What RouterOS version are you using?
 
rborz
newbie
Topic Author
Posts: 29
Joined: Sat Nov 29, 2008 11:41 pm

Re: Bandwidth limitation on CPE

Tue Jun 03, 2014 7:34 pm

I tested it with v6.6 and v6.7. I think I had also a test client with 6.10, but I'm not sure about it...
 
rborz
newbie
Topic Author
Posts: 29
Joined: Sat Nov 29, 2008 11:41 pm

Re: Bandwidth limitation on CPE

Wed Jun 11, 2014 2:14 pm

@scotthammersley: Any idea what could be the issue?

Who is online

Users browsing this forum: Amazon [Bot], bias89, Bing [Bot], NxtGen [Bot], qwertykolea, sybadi and 51 guests