Solution to Limit Youtube Video Streams on Mikrotik


Solution to Limit Youtube Video Streams on Mikrotik

That confuses me to manage th bandwidth traffic is the video stream such a youtube and others on theInternet Cafe Network. Video streams can be spend a lot of bandwidth of the bandwidth totally that you have. Even until the children were familiar with video streams such a youtube to watch the video that they want. Its very frustrating to me when the client was full or congested traffic, any people are turning youtube video. The consequence of this is the browsing can be very slow. Though the satisfaction people is on the browsing, open and read something of the site pages. If the browsing speed is take too long the people will not keep a long, it can happened because of the act of 1 or 2 client cause a lot of people break up. In Balinese Term is "uyak sere aji aketeng

When the People do browsing, it will not continue, at some time they will be read, which means the traffic sometime will be paused. But when the people turning the video stream, it is continuously consuming bandwidth all a long, can be longer than those who download. In this case how big you've given the bandwidth, video stream will spend or cut all the bandwidth for buffering process. If this happened in a long time, how much quota will be spent. Surely telling to go out of the client is the last one to be taken :) 

There are various methods in order to limit the video stream such a youtube on mikrotik. I do not really understand the problem that many methods have given many failed to apply. The first suspicion the way that was given is not implemented yet. The second limitation can be work only for youtube browesing, not on the video stream that we intention. That to be the intention is the speed limitation on video streams not access speed of the url video stream site. Many experiments i have done finally end here that can be represent what i wish about the solution to Limit Youtube Video Stream on Mikrotik
The speed of video streams, i was limited by using Queue Tree rule, and the speed browsing I was limited by the Simple Queue rule. You can disable the Simple Queue rule if you have defined the video stream and download in many variety of files that defined on the Queue tree. To be safe you use the Simple queue with the limit value is greater in making browsing speed more fast. Here are the steps to Limit Youtube Video Stream on Mikrotik that i have done.

1. Login to your Mikrotik WinBox, Click on IP>Firewall,  select tab : Layer7 Protocols, and click on + button, will shown like the picture below!  and then click Ok. You will have the new rule of Layer7 Protocols with the name streaming. You can add any other url video stream inside Regexp. 

?
1
2
/ip firewall layer7-protocol
add comment="" name=streaming regexp="^.*get.+\\.(c.youtube.com|cdn.dailymotion.com|metacafe.com|mccont.com).*\$"

Or

?
1
2
/ip firewall layer7-protocol
add comment="" name=streaming regexp="videoplayback|video"

2. Still in firewall window, select tab : Mangle, here you will to create a new mangle rule. For more quickly just click on New Terminal menu, copy the mangle script, right click on terminal window and paste therein!


 The mangle script that you have to insert :
?
1
2
3
4
5
/ip firewall mangle
add action=mark-packet chain=prerouting \
comment="Mark Packet Streaming" disabled=no \
layer7-protocol=streaming new-packet-mark=streaming \
passthrough=no

3. On the winbox menu click : Queues, Queue list will be shown. Select tab : Queue tree, here you will to create a new queue rule for video streaming. For more quickly just click on New Terminal menu, copy the Queue Tree script, right click on terminal window and paste therein!

The Queue tree script that you have to insert :
?
1
2
3
4
/queue tree add name="streaming" parent=global-out \
packet-mark=streaming limit-at=0 queue=default \
priority=8 max-limit=128k burst-limit=0 \
burst-threshold=0 burst-time=0s
You can change the value of the max-limit as you wish depending on the situation of client and total bandwidth that you have. This method is proven can be work, here I will show you the result! 

Play any video on youtube, it doesn’t matter local or international of the youtube video that you play. For more clearly let’s see the article video above! good luck!

Comments

  1. Beetv Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our.

    ReplyDelete

Post a Comment

Popular posts from this blog

DMASOFTLAB RADIUS MANAGER BILLING SYSTEM v 4.1 Finally Released

How To Configure Nano Station M2 As Access point