Hi, thanks!!
bellow is my configuration.
The router is connected via a bridge to the modem on the first ethernet
port.
There are four subnets behind the router, one for each of the first four
ethernet ports.
ethernet 1 (192.168.1.2/24) is for the bridge with the modem (192.168.1.1).
ethernet 2 (192.168.2.1/24) is for the wifi access point
ethernet 3 (192.168.3.1/24) is for my father’s desk (computer, printer,
etc)
ethernet 4 (192.168.4.1/24) is for the living room, etc, where my PC
(192.168.4.18) is located.
I would like to improve the ping times for my PC (192.168.4.18) and
improve latency when others are downloading or uploading.
I have tried adding queues of various types, adding mangling in the
firewall, but all i could manage was traffic shaping. Ping times were
not affected.
The connection to the internet is very slow in my area. It can be as be
as low as 10Mbps download /1Mbps upload.
\
aug/24/2019 17:52:45 by RouterOS 6.40.4
software id = YTK1-UF3S
model = RouterBOARD 750G r3
serial number = 6F38075321B8
/interface bridge
add name=bridge1
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp_pool2 ranges=192.168.2.101-192.168.2.239
add name=dhcp_pool3 ranges=192.168.3.101-192.168.3.239
add name=dhcp_pool4 ranges=192.168.4.101-192.168.4.239
add name=dhcp_pool5 ranges=192.168.5.101-192.168.5.239
/ip dhcp-server
add address-pool=dhcp_pool2 disabled=no interface=ether2 name=dhcp2
add address-pool=dhcp_pool3 disabled=no interface=ether3 name=dhcp3
add address-pool=dhcp_pool4 disabled=no interface=ether4 name=dhcp4
/queue type
add kind=pcq name=PCQ pcq-classifier=dst-address pcq-dst-address6-mask=64
pcq-rate=2M pcq-src-address6-mask=64
add kind=pcq name=Download pcq-classifier=dst-address pcq-dst-address6-mask=
64 pcq-src-address6-mask=64
add kind=pcq name=Upload pcq-classifier=src-address pcq-dst-address6-mask=64
pcq-src-address6-mask=64
set 8 pcq-rate=256k
set 9 pcq-rate=1k pcq-total-limit=1000KiB
/interface bridge port
add bridge=bridge1 interface=ether1
/ip address
add address=192.168.2.1/24 interface=ether2 network=192.168.2.0
add address=192.168.3.1/24 interface=ether3 network=192.168.3.0
add address=192.168.4.1/24 interface=ether4 network=192.168.4.0
add address=192.168.5.1/24 interface=ether5 network=192.168.5.0
add address=192.168.1.2/24 interface=ether1 network=192.168.1.0
/ip dhcp-server lease
add address=192.168.3.10 always-broadcast=yes client-id=1:2c:53:4a:1:11:8b
comment=“echo eth” mac-address=2C:53:4A:01:11:8B server=dhcp3
add address=192.168.3.3 client-id=1:a0:21:b7:c1:b4:98 comment=readynas
mac-address=A0:21:B7:C1:B4:98 server=dhcp3
add address=192.168.4.2 always-broadcast=yes client-id=1:6c:3b:6b:b8:2:13
comment=“r7 port1” mac-address=6C:3B:6B:B8:02:13 server=dhcp4
add address=192.168.4.21 always-broadcast=yes comment=“sony tv eth”
mac-address=AC:9B:0A:E2:6B:89 server=dhcp4
add address=192.168.4.25 client-id=1:c:fe:45:a8:14:1 comment=“ps4 eth”
mac-address=0C:FE:45:A8:14:01 server=dhcp4
add address=192.168.4.23 client-id=1:0:6:dc:43:7f:39 comment=“popcorn eth”
mac-address=00:06:DC:43:7F:39 server=dhcp4
add address=192.168.2.42 always-broadcast=yes client-id=1:4c:32:75:57:81:f7
comment=“haris ipad” mac-address=4C:32:75:57:81:F7 server=dhcp2
add address=192.168.2.41 always-broadcast=yes client-id=1:74:1b:b2:c0:35:62
comment=“haris iphone” mac-address=74:1B:B2:C0:35:62 server=dhcp2
add address=192.168.4.18 always-broadcast=yes client-id=1:d4:3d:7e:95:71:aa
comment=“prinias eth” mac-address=D4:3D:7E:95:71:AA server=dhcp4
add address=192.168.2.44 always-broadcast=yes client-id=1:24:92:e:5c:4:72
comment=“despo tablet” mac-address=24:92:0E:5C:04:72 server=dhcp2
add address=192.168.2.43 always-broadcast=yes client-id=1:88:32:9b:65:cf:1c
comment=“despo phone” mac-address=88:32:9B:65:CF:1C server=dhcp2
add address=192.168.2.13 address-lists=“” always-broadcast=yes client-id=
1:78:4f:43:a6:41:1a comment=“haris mbp wifi” mac-address=
78:4F:43:A6:41:1A server=dhcp2
add address=192.168.3.12 always-broadcast=yes client-id=1:0:e0:4c:36:12:21
comment=“haris mbp eth” mac-address=00:E0:4C:36:12:21 server=dhcp3
add address=192.168.4.12 client-id=1:0:e0:4c:36:12:21 comment=“haris mbp eth”
mac-address=00:E0:4C:36:12:21 server=dhcp4
add address=192.168.5.2 client-id=1:64:d1:54:8c:c3:77 comment=“r6 port 1”
mac-address=64:D1:54:8C:C3:77
add address=192.168.3.248 client-id=1:0:62:6e:70:5a:f comment=“armakcam8 eth”
mac-address=00:62:6E:70:5A:0F server=dhcp3
add address=192.168.2.248 always-broadcast=yes client-id=1:e8:ab:fa:a2:72:ba
comment=“armakcam8 wifi” mac-address=E8:AB:FA:A2:72:BA server=dhcp2
add address=192.168.2.51 mac-address=F4:F5:D8:D8:23:10 server=dhcp2
add address=192.168.2.52 always-broadcast=yes mac-address=48:D6:D5:F0:7C:20
server=dhcp2
add address=192.168.2.53 always-broadcast=yes mac-address=48:D6:D5:95:54:1F
server=dhcp2
add address=192.168.2.55 always-broadcast=yes mac-address=E4:F0:42:24:E6:B1
server=dhcp2
add address=192.168.2.4 client-id=1:b8:27:eb:9f:79:f3 comment=“octopi wifi”
mac-address=B8:27:EB:9F:79:F3 server=dhcp2
add address=192.168.4.3 client-id=1:0:d0:4b:86:30:68 comment=lacie
mac-address=00:D0:4B:86:30:68 server=dhcp4
add address=192.168.2.45 always-broadcast=yes comment=“redmi george”
mac-address=7C:03:AB:DF:63:87 server=dhcp2
add address=192.168.2.10 always-broadcast=yes client-id=1:7c:dd:90:8c:63:f5
comment=“echo wifi” mac-address=7C:DD:90:8C:63:F5 server=dhcp2
add address=192.168.2.49 always-broadcast=yes client-id=1:0:51:2f:5b:4d:9c
comment=turbox mac-address=00:51:2F:5B:4D:9C server=dhcp2
add address=192.168.3.4 client-id=1:b8:27:eb:ca:2c:a6 comment=octopi
mac-address=B8:27:EB:CA:2C:A6 server=dhcp3
add address=192.168.3.61 client-id=1:b8:27:eb:a0:ea:13 comment=“asproneri pi”
mac-address=B8:27:EB:A0:EA:13 server=dhcp3
add address=192.168.2.48 always-broadcast=yes client-id=1:fc:87:43:4c:3f:54
comment=“despos huawei” mac-address=FC:87:43:4C:3F:54 server=dhcp2
add address=192.168.3.5 always-broadcast=yes client-id=1:c4:65:16:3e:fa:d5
comment=“hp color printer” mac-address=C4:65:16:3E:FA:D5 server=dhcp3
/ip dhcp-server network
add address=192.168.2.0/24 gateway=192.168.2.1
add address=192.168.3.0/24 gateway=192.168.3.1
add address=192.168.4.0/24 gateway=192.168.4.1
add address=192.168.5.0/24 gateway=192.168.5.1
/ip dns
set allow-remote-requests=yes servers=192.168.1.1,8.8.4.4,8.8.8.8
/ip route
add distance=2 gateway=192.168.1.1 pref-src=192.168.1.2
add distance=1 dst-address=192.168.7.0/24 gateway=192.168.4.2
/system clock
set time-zone-name=Europe/Athens
/system routerboard mode-button
set enabled=no on-event=“”
/system script
add name=qos owner=admin policy=
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=“#
Set interface here\r
\n:local outboundInterface "wan0"\r
\n\r
\n#Set bandwidth of the interface (remember, this is for OUTGOING)\r
\n:local interfaceBandwidth 4M\r
\n\r
\n#Set where in the chain the packets should be mangled\r
\n:local mangleChain postrouting\r
\n\r
\n#Don’t mess with these. They set the parameters for what is to follow\r
\n:local queueName ("QoS_" . $outboundInterface)\r
\n:local qosClasses [:toarray "Network Control,Internetwork Control,Criti
cal,Flash Override,Flash,Immedate,Priority,Routine"]\r
\n\r
\n/ip firewall mangle add action=set-priority chain=postrouting dst-port=1
119,3724,6113 new-priority=3 passthrough=yes protocol=tcp\r
\n/ip firewall mangle add action=set-priority chain=postrouting dst-port=6
052,5062,5060,12000-32000,3478,3479 new-priority=3 passthrough=yes protoco
l=udp\r
\n/ip firewall mangle add action=set-priority chain=postrouting new-priori
ty=from-dscp-high-3-bits passthrough=yes comment="Respect DSCP tagging"
\r
\n/ip firewall mangle add action=set-priority chain=postrouting new-priori
ty=2 packet-size=0-123 passthrough=yes protocol=tcp tcp-flags=ack comment=
"Prioritize ACKs"\r
\n/ip firewall mangle add action=set-priority chain=postrouting priority=0
_dscp=0 new-priority=8 passthrough=yes comment="Set Pri 0 on packets wi
th no tag at all"\r
\n\r
\n\r
\n:for indexA from 0 to 7 do={\r
\n /ip firewall mangle add action=mark-packet chain=$mangleChain comme
nt=("pri_" . $indexA+1) \\r
\n disabled=no priority=($indexA+1) new-packet-mark=("priority_
" . $indexA+1) passthrough=no\r
\n}\r
\n\r
\n/queue tree add max-limit=$interfaceBandwidth name=$queueName parent=
$outboundInterface priority=1\r
\n:for indexA from=0 to=7 do={\r
\n\t:local subClass ([:pick $qosClasses $indexA] )\r
\n\t/queue tree add \ \r
\n\t\tname=($indexA+1 . ". " . $subClass . " - " . $outboundInterfa
ce ) \\r
\n\t\tparent=$queueName \\r
\n\t\tpriority=($indexA+1) \\r
\n\t\tqueue=ethernet-default \\r
\n packet-mark=("priority_" . $indexA+1) \\r
\n comment=("Priority " . $indexA+1 . " traff
ic")\r
\n}”
/tool graphing interface