QoS tree - Case Study - Home Setup

QoS Tree by @RomelSan:
Case Example.

I have:
Core LAN: 192.168.6.0/24 ether2-Core
Family LAN: 192.168.7.0/24 ether3-Family
Guest HotSpot: 192.168.5.0/24 ether4-HotSpot-Cisco
WAN: internet-ether10

My PC is: 192.168.6.100
Synology NAS: 192.168.6.104

The hotspot is not actually a routerboard hotspot.
So it is just a wireless network called Hotspot

Internet ISP Speed: Download: 6mbps Upload: 1.4mbps

I Want my setup like this:

  1. My Family LAN computers to have equally internet speed.
    and must have a total limit. Internet Speed Download:2M Upload:400k

  2. My PC 192.168.6.100 Must have all the Speed without affecting Family Internet Speed

  3. My Synology NAS 192.168.6.104 must have the rest so it doesnt affect Family and Core Internet Speed

  4. HotSpot Wireless must have the lowest priority and limited to Download:3M Upload:400K


    I need to:

  5. Setup Mangles: for IP and/or service ports

  6. Add QoS Types if needed

  7. Setup QoS tree

/ip firewall mangle
add chain=prerouting src-address=192.168.7.0/24 action=mark-connection new-connection-mark=Family_conn comment="Family Packets" 
add chain=prerouting connection-mark=Family_conn action=mark-packet new-packet-mark=Family passthrough=no
add chain=prerouting src-address=192.168.6.100 action=mark-connection new-connection-mark=Core_Conn comment="Core PC"
add chain=prerouting connection-mark=Core_Conn action=mark-packet new-packet-mark="Core PC" passthrough=no
add chain=prerouting src-address=192.168.6.104 action=mark-connection new-connection-mark=Synology_Conn comment="Synology"
add chain=prerouting connection-mark=Synology_Conn action=mark-packet new-packet-mark=Synology passthrough=no
add chain=prerouting src-address=192.168.5.0/24 action=mark-connection new-connection-mark=HotSpot_Conn comment="HotSpot"
add chain=prerouting connection-mark=HotSpot_Conn action=mark-packet new-packet-mark=HotSpot passthrough=no



/queue type
add name=Family_Upload kind=pcq pcq-rate=400k pcq-burst-time=1s pcq-classifier=src-address 
add name=Family_Download kind=pcq pcq-rate=2M pcq-burst-time=1s pcq-classifier=dst-address



/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name="Internet Download" packet-mark="" parent=global-in priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=2M name="Family Down Limit" packet-mark=Family parent="Internet Download" priority=1 queue=Family_Download
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name="Internet Upload" packet-mark="" parent=internet-ether10 priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=400k name="Family Up Limit" packet-mark=Family parent="Internet Upload" priority=1 queue=Family_Upload
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name="Core Down Limit" packet-mark="Core PC" parent="Internet Download" priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name="Synology Down Limit" packet-mark=Synology parent="Internet Download" priority=3 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name="Core Up Limit" packet-mark="Core PC" parent="Internet Upload" priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name="Synology Up Limit" packet-mark=Synology parent="Internet Upload" priority=3 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=3M name="HotSpot Down Limit" packet-mark=HotSpot parent="Internet Download" priority=4 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=400k name="HotSpot Up Limit" packet-mark=HotSpot parent="Internet Upload" priority=4 queue=default