Community discussions

MikroTik App
 
EchtkPvL
just joined
Topic Author
Posts: 9
Joined: Sun Aug 17, 2014 1:48 am

QoS

Sun Aug 17, 2014 1:59 am

Hello,

first sorry but my English is not very good.
I'm going to buy this Router: MikroTik RB2011UiAS-2HnD-IN
I need to configure this Router that QoS give every User (dynamic) the same bandwidth. In my Case this is about 25m. The reason is that we have a LAN-party and even if Steam automaticly updates some Games the Internetconnection Crashes and all Users get a high Ping. Can someone explain me how to configure the Router that every User has the same Bandwith and if a User doesn't use his Bandwith other User kann use it (Until this User needs it).

Greetings Jonas

------------------------------------------------------------
Hallo,

ich habe mir folgenden Router bestellt: MikroTik RB2011UiAS-2HnD-IN
Jetzt bräuchte ich Hilfe bei der Einrichtung. Ich veranstalte regelmäßig eine LAN-Party bei der Rund 40 Leute teilnehmen. Wir haben eine 25m Leitung und immer wenn ein User etwas downloaded (in den meisten Fällen sind das Autouodates) bricht das Internet zusammen, weil dieser eine User die gesamte Leitung in Anspruch nimmt. Jetzt habe ich gehört, das das mit QoS begrenzbar ist. Jedoch habe ich im Netz noch keine Anleitung gefunden die das erklärt. Es soll die Leitung (25m) fair auf alle User verteilt werden und nicht genutzte Bandbreite anderen zu Verfügung gestellt werden (Aber ohne das dadurch ein User benachteiligt wird).

MfG Jonas
 
Decsus
just joined
Posts: 18
Joined: Tue Aug 19, 2014 1:27 pm

Re: QoS

Tue Aug 19, 2014 1:59 pm

You need to use PCQ.

1. Setup firewall-mangle to mark the inbound and outbound packets
2. Create new PCQ Queue types
3. Create Simple Ques indicating your total bandwith, in your case 25Mbit/s



http://wiki.mikrotik.com/wiki/Manual:Qu ... Q_Examples
 
EchtkPvL
just joined
Topic Author
Posts: 9
Joined: Sun Aug 17, 2014 1:48 am

Re: QoS

Thu Aug 21, 2014 12:43 am

---PUSH---
 
EchtkPvL
just joined
Topic Author
Posts: 9
Joined: Sun Aug 17, 2014 1:48 am

Re: QoS

Thu Aug 21, 2014 4:25 pm

Thank you. I will try to Configure this. And sorry for the Push, it was sent before youre Comment was accepted :D
Last edited by EchtkPvL on Mon Jan 26, 2015 8:53 pm, edited 1 time in total.
 
EchtkPvL
just joined
Topic Author
Posts: 9
Joined: Sun Aug 17, 2014 1:48 am

Re: QoS

Mon Jan 26, 2015 8:51 pm

Hello,

it doesn't work :(
Here is my Configuration:
/queue type add kind=pcq name=2m_down pcq-classifier=dst-address pcq-rate=2M
/queue type add kind=pcq name=2m_up pcq-classifier=src-address pcq-rate=2M
/queue tree add name="ft_down" packet-mark=client_download parent=br-lan queue=2m_down
/queue tree add name="ft_up" packet-mark=client_upload parent=br-lan queue=2m_up
/queue simple add name="Fair-Traffic" target=192.168.0.0/24 queue=2m_up/2m_down parent=none comment="Share Bandwidth fair"
Why 2M and not 25M? Because I want to test the queue at home with my Desktop and my Laptop.

If you need it, here is the Configuration of the whole router:
# jan/26/2015 19:39:18 by RouterOS 6.26rc4
# software id = FUFQ-EDVT
#
/interface bridge
add mtu=1500 name=br-lan protocol-mode=none
/interface ethernet
set [ find default-name=ether10 ] name=e10wan
set [ find default-name=sfp1 ] disabled=yes
set [ find default-name=ether1 ] name=sw1-e1-master
set [ find default-name=ether2 ] master-port=sw1-e1-master name=sw1-e2
set [ find default-name=ether3 ] master-port=sw1-e1-master name=sw1-e3
set [ find default-name=ether4 ] master-port=sw1-e1-master name=sw1-e4
set [ find default-name=ether5 ] master-port=sw1-e1-master name=sw1-e5
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name=wlan1 supplicant-identity="" wpa2-pre-shared-key=***
add authentication-types=wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name=wlan-gast supplicant-identity="" wpa2-pre-shared-key=***
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-ht-above country=germany disabled=no frequency=2417 l2mtu=2290 mode=ap-bridge security-profile=wlan1 ssid=WLAN-IT
add disabled=no l2mtu=2290 mac-address=4E:5E:0C:65:53:0C master-interface=wlan1 name=wl-gast security-profile=wlan-gast ssid=WLAN-IT-Gast wds-cost-range=0 wds-default-cost=0
/ip pool
add name=dhcp_pool1 ranges=192.168.0.100-192.168.0.200
add name=dhcp_pool2 ranges=192.168.2.100-192.168.2.200
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=br-lan lease-time=3d name=dhcp1
add address-pool=dhcp_pool2 disabled=no interface=wl-gast lease-time=3d name=dhcp2
/port
set 0 name=serial0
/queue simple
add comment="SSH-Hoechste Prio" name=wan-hi packet-marks=ssh_pkt priority=1/1 target=e10wan
/queue type
add kind=pcq name=2m_down pcq-classifier=dst-address pcq-rate=2M
add kind=pcq name=2m_up pcq-classifier=src-address pcq-rate=2M
/queue simple
add comment=Default name=wan1 packet-marks=no-mark queue=default/default target=e10wan
add comment="Share Bandwidth fair" name=Fair-Traffic queue=2m_up/2m_down target=192.168.0.0/24
/queue tree
add name=ft_down packet-mark=client_download parent=br-lan queue=2m_down
add name=ft_up packet-mark=client_upload parent=br-lan queue=2m_up
/system logging action
set 3 src-address=0.0.0.0
/user group
add comment=Read-Only name=backup policy=telnet,ssh,ftp,read,winbox,web,!local,!reboot,!write,!policy,!test,!password,!sniff,!sensitive,!api
/interface bridge port
add bridge=br-lan interface=sw1-e1-master
add bridge=br-lan interface=wlan1
/ip address
add address=192.168.0.1/24 interface=br-lan network=192.168.0.0
add address=192.168.2.0/24 interface=wl-gast network=192.168.2.0
/ip dhcp-client
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no interface=e10wan
/ip dhcp-server network
add address=192.168.0.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=192.168.0.1
add address=192.168.2.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=192.168.2.0
/ip dns
set allow-remote-requests=yes
/ip firewall filter
add action=log chain=input disabled=yes
add action=log chain=forward disabled=yes
add chain=input comment="Allow LAN" in-interface=e10wan src-address=10.0.0.0/8
add chain=input comment="Allow LAN" in-interface=e10wan src-address=172.16.0.0/12
add chain=input comment="Allow LAN" in-interface=e10wan src-address=192.168.0.0/16
add chain=input comment="Allow established connections" connection-state=established,related
add chain=input in-interface=br-lan
add chain=input comment="DNS Gast-WLAN" dst-port=53 in-interface=wl-gast protocol=udp
add action=drop chain=input
add chain=forward comment="Allow established connections" connection-state=established,related
add chain=forward comment="Rule for Inet" dst-address=!192.168.0.0/24 in-interface=br-lan
add chain=forward comment="Rule for Inet WLAN-Gast" dst-port=22,80,443 in-interface=wl-gast out-interface=e10wan protocol=tcp
add action=drop chain=forward
/ip firewall mangle
add action=mark-connection chain=prerouting dst-port=22 new-connection-mark=ssh_con protocol=tcp
add action=mark-packet chain=prerouting connection-mark=ssh_con new-packet-mark=ssh_pkt
/ip firewall nat
add action=masquerade chain=srcnat out-interface=e10wan
/ip proxy
set cache-path=web-proxy1
/ip route
add comment=Nullroute disabled=yes distance=1 dst-address=123.123.123.0/24 type=blackhole
/ip traffic-flow
set enabled=yes
/lcd
set backlight-timeout=never default-screen=stats read-only-mode=yes touch-screen=disabled
/lcd pin
set pin-number=1997
/lcd interface
set sfp1 disabled=yes
set sw1-e1-master disabled=yes
set sw1-e2 disabled=yes
set sw1-e3 disabled=yes
set sw1-e4 disabled=yes
set sw1-e5 disabled=yes
set ether6 disabled=yes
set ether7 disabled=yes
set ether8 disabled=yes
set ether9 disabled=yes
/system clock
set time-zone-name=Europe/Berlin
/system identity
set name=router1
/system logging
set 0 topics=info,!firewall
add action=disk prefix="[FW]" topics=firewall
/system ntp client
set enabled=yes primary-ntp=192.53.103.108
 
EchtkPvL
just joined
Topic Author
Posts: 9
Joined: Sun Aug 17, 2014 1:48 am

Re: QoS

Tue Jan 27, 2015 8:56 pm

push