Thursday, September 17th, 2015 | Qoraa:
  • Qaybta 1 – Hordhac – Dejinta safafka Simple (Tani post)
  • Qaybta 2 – Kalsoonaan karo Aqoonsiga gaadiidka – Dejinta Mangle Rules (Imaatinka Soon TM)
  • Qaybta 3 – Mudnaanta iyo XUDUUDDA – Dejinta Geedaha safka (Imaatinka Soon TM)
  • Qaybta 4 – Monitoring Usage – Ayaal safafka – Limiting Abusive Devices (Imaatinka Soon TM)
  • Qaybta 5 – ??? Faa'iido ???

Hordhac

The first problem one usually comes across after being tasked with improving an Internet connection is that the connection is overutilised. Caadi ahaan qofna ma oga sababta, kuwaas oo, ama waxa keenaya dhibaatada – except of course everyone blames the ISP. Mararka qaarkood waxa ISP ee – but typically you can’t prove that without having an alternative connection immediately available. I currently manage or help manage four “sites / dhismaha” Isticmaalka in QoS si ay u maareeyaan isku xirnaanta Internet ay. Mid ka mid ah waa goobta shaqada, two are home connections, and the last one is a slightly variable one – sida caadiga ah oo kaliya la xidhiidha guri, laakiin haddii kale, for a weekend every few months, it becomes a 140-Nin (oo sii kordhaya) LAN. Fun. 🙂

MikroTik RouterOS iyo

MikroTik'S RouterOS is very powerful in the right hands. Many other routers support QoS but not with the fine-grain control MikroTik provides. Alternatively you could utilise other Linux-based router OS’s, sida DD-WRT, Smoothwall, Xalin lahaayeen, oo sidaas. Inta badan oo ka mid ah caadi ahaan u baahan tahay in aad qabto server oo dheeraad ah oo ku saabsan been ama router ah hardware socon. Mikrotik iibiya RouterBoards in ay leeyihiin RouterOS builtin – oo ay raqiis yihiin.

My waayo-aragnimo la router ugu horrayn la Cisco iyo MikroTik – iyo waaya-aragnimadayda QoS marka hore waxay la jirtaa Riddaa ee NetEnforcer / NetXplorer nidaamyada iyo MikroTik. The qalabka MikroTik ugu caansan ee aan waayo-aragnimo (aan ahayn qalabka ay mudada dheer kala duwan oo heegan ah wireless) ayaa ay rb750 (version cusub magacaabay “hEX“) iyo rb950-looxyadii ku salaysan. Waxay leeyihiin kuwo kale oo badan waa la heli karaa waana jaban yihiin. Marka la barbardhigo taariikhi ah qalabka caymiska ee Cisco, Waxaan u muuqdaan in lagu qeexo qalabka MikroTik ee sida “90% muuqaalada ee 10% kharashka”. Sida buugan waxaa looga jeedo ugu horayn SME isticmaalka Home /, jaban ayaa macno badan samaynaysa. Haddii aad raadineyso helitaanka qalab MikroTik, la soco in router MikroTik sameeyo ma sida caadiga ah ku dar modemka DSL, Saasuuna kuu qalabka jira waa caadi ahaan weli loo baahan yahay. Fiiro gaar ah sidoo kale in tani ay tahay ma tutorial ah oo ku saabsan qalab MikroTik ah u fidinno ka xoq. Waxaa jira badan oo Hanuuniyaa heli karaa online for in mar hore.

Aragtida dhaqan – Tallaabooyinkii ugu horeeyay ee

Si aad qotomisay QoS sax ah, waxaad u baahan tahay inaad fikrad ka haysato siyaasad tixgelinaysa waxyaabaha soo socda:

  • Guud ahaan xawaaraha xiriir
  • Sidee badan oo dadka isticmaala / qalabka la isticmaalayo doonaa xiriir
  • Isticmaalayaasha / aaladaha / adeegyada / borotokoolka ay tahay in mudnaanta la siiyo daahitaanka iyo / ama soo gudbinta

Si loo gaaro dushiisa xagga tusaalooyinka aan, Waxaan u qaadan doonaa waxyaabaha soo socda:

  • MikroTik ayaa lagu wadaa la qaabeynta shabakadda default meesha network maxalliga ah waa 192.168.88.0/24 iyo internet-ka waxaa la siiyaa via PPPoE.
  • Xawaaraha la xidhiidha waxa ay tahay 10 / 2Mbps (10 Mbps xawaaraha download; 2 Mbps xawaaraha Upload)
  • Waxaa jiri doona 5 users leh sida ugu badan 15 qalab (kombiyuutarada badan / kiniinno / telefoonada gacanta / WiFi iwm)
  • Downloads caadiga ah u baahan mudnaan sare la dhex laakiin low-mudnaanta leh Telcom
  • Ciyaaraha / Skype / Nidaamyada Maamulka waxay u baahan yihiin mudnaan sare oo leh daahitaan iyo wax soo saar labadaba
  • No dadka isticmaala ay tahay in la kala mudnaan badan kuwa kale

Tallaabada ugu horreysa uguna dhaqsaha badan waa in la dejiyo waxa RouterOS loola jeedo a Safka Simple.

Waxaan sameeyay script gaaban oo aan u badbaadiyey on qalabka MikroTik aan u qotomiyey safafka fudud. Waana sidan soo socota:

:x ka 1 si ay u 254 yeela ={
 /saf fudud magaca add ="internet-usage- $ x" dst ="pppoe" max-xadka = 1900k / 9500k target ="192.168.88.$x"
}

Waa maxay kor ku yaal aanu waa xadka xawaaraha ugu badan ee qof kasta oo qalab isticmaali karto si aad “1900k” (1.9Mb) geliyaan iyo “9500k” (9.5Mb) download.

Notes:

  • Sababta sababta xadka max yihiin 95% xawaaraha ugu sarreeya ee xariiqda ayaa ah in kani uusan damaanad qaadin in qalab keliya uusan si buuxda u gaajoon karin isku-xirnaanta, si xun u saameynaya isticmaaleyaasha kale. Iyada oo leh saldhig weyn oo ballaadhan ayaan sii xoojin lahaa xadkaas. Tusaale ahaan, la 100 dadka isticmaala adeegga 20MB waxaan laga yaabaa in xadka si 15Mb dhigay ama xataa yar sida 1Mb. Tani waxay ku xiran yahay sida “xadgudub” users yihiin iyo, sida inaad ogaatid meesha iyo sida xadgudub badan waxay dhacdaa, waad ku hagaajin kartaa si habboon.
  • Horgalaha “internet-isticmaalka” in dhimaya magaca laga beddeli karaa. Sida caadiga ah waan kuwaas oo qarka u saaran inuu tixraac magaca goobta. Tusaale ahaan, iyadoo dhismayaal loogu magac daray “Alfa” iyo “beta”, Waxaan caadi ahaan gelin doonaa “internet-Alfa” iyo “internet-beta”. Taasi waxay gacan ka dabiicadda kala dhexeeya goobaha.
  • Halbeegga dst waxay leedahay “pppoe” tusaale ahaan. Tani waa in la bedelay magaca interface kaas oo bixiya isku xirka internetka.

Hubi in aad u astaysto script ah in ay haboontahay in ay aad u qaabeynta. Save script in ay MikroTik ah iyo waxa maamula – ama si toos ah paste ku MikroTik ee terminal si ay u soo dejiyaan.

Qoraalkayga soo socda ayaan dul mari doonaa dejinta waxa RouterOS loola jeedo Mangle Xeerarka. Sharciyadan waa u adeega si ay u aqoonsadaan / kala saaraan gaadiidka network si ay u sameeyaan QoS qaadhaan-grained suurto gal.

Share
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, ama trackback from your own site.
Leave a Reply » Gal